PollingDuplexHttpBinding.UseTextEncoding Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets a value that indicates whether text or binary encoding is used for the message.

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

Syntax

'Declaration
Public Property UseTextEncoding As Boolean
public bool UseTextEncoding { get; set; }

Property Value

Type: System.Boolean
true if text encoding is used; false if binary encoding is used.

Remarks

If text encoding is used, the TextMessageEncodingBindingElement is used in the binding element stack. If binary encoding is used, the BinaryMessageEncodingBindingElement is used in the binding element stack.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.