Modifica

Condividi tramite


TextMessageEncodingBindingElement Constructors

Definition

Initializes a new instance of the TextMessageEncodingBindingElement class.

Overloads

TextMessageEncodingBindingElement()

Initializes a new instance of the TextMessageEncodingBindingElement class.

TextMessageEncodingBindingElement(MessageVersion, Encoding)

Initializes a new instance of the TextMessageEncodingBindingElement class with a specified message version and encoding.

TextMessageEncodingBindingElement()

Source:
TextMessageEncodingBindingElement.cs
Source:
TextMessageEncodingBindingElement.cs
Source:
TextMessageEncodingBindingElement.cs

Initializes a new instance of the TextMessageEncodingBindingElement class.

public:
 TextMessageEncodingBindingElement();
public TextMessageEncodingBindingElement ();
Public Sub New ()

Remarks

The default MessageVersion for this constructor is the version of WS-Addressing 1.0 and SOAP 1.2. The default text encoding is the UTF-8 format.

Applies to

TextMessageEncodingBindingElement(MessageVersion, Encoding)

Source:
TextMessageEncodingBindingElement.cs
Source:
TextMessageEncodingBindingElement.cs
Source:
TextMessageEncodingBindingElement.cs

Initializes a new instance of the TextMessageEncodingBindingElement class with a specified message version and encoding.

public:
 TextMessageEncodingBindingElement(System::ServiceModel::Channels::MessageVersion ^ messageVersion, System::Text::Encoding ^ writeEncoding);
public TextMessageEncodingBindingElement (System.ServiceModel.Channels.MessageVersion messageVersion, System.Text.Encoding writeEncoding);
new System.ServiceModel.Channels.TextMessageEncodingBindingElement : System.ServiceModel.Channels.MessageVersion * System.Text.Encoding -> System.ServiceModel.Channels.TextMessageEncodingBindingElement
Public Sub New (messageVersion As MessageVersion, writeEncoding As Encoding)

Parameters

messageVersion
MessageVersion

The MessageVersion that is used for the message version.

writeEncoding
Encoding

The Encoding that is used to format the message characters.

Exceptions

messageVersion or writeEncoding is null.

writeEncoding value is not valid.

Applies to