WriteEncoding Property
Collapse the table of content
Expand the table of content

TextMessageEncodingBindingElement.WriteEncoding Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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 Encoding WriteEncoding { get; set; }

Property Value

Type: System.Text.Encoding
The Encoding that is used to format the characters in the text message. The default text encoding is the UTF-8 format.

ExceptionCondition
ArgumentNullException

The value is null.

ArgumentException

writeEncoding value is not valid.

Other possible encodings include, for example, Unicode and Big Endian Unicode.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft