Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MtomMessageEncodingBindingElement::WriteEncoding Property

 

Gets or sets the encoding that is used to format the characters in the text message.

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
property Encoding^ WriteEncoding {
	Encoding^ get();
	void set(Encoding^ value);
}

Property Value

Type: System.Text::Encoding^

The Encoding that is used to format the characters in the text message.

Exception Condition
ArgumentNullException

The value is null.

ArgumentException

The value is not valid text encoding value.

The default text encoding is the UTF-8 format. Other possible encodings include, for example, Unicode and Big Endian Unicode.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft