Edit

Share via


WSDualHttpBinding.TextEncoding Property

Definition

Gets or sets the character encoding that is used for the message text.

public:
 property System::Text::Encoding ^ TextEncoding { System::Text::Encoding ^ get(); void set(System::Text::Encoding ^ value); };
public System.Text.Encoding TextEncoding { get; set; }
[System.ComponentModel.TypeConverter(typeof(System.ServiceModel.Configuration.EncodingConverter))]
public System.Text.Encoding TextEncoding { get; set; }
member this.TextEncoding : System.Text.Encoding with get, set
[<System.ComponentModel.TypeConverter(typeof(System.ServiceModel.Configuration.EncodingConverter))>]
member this.TextEncoding : System.Text.Encoding with get, set
Public Property TextEncoding As Encoding

Property Value

The Encoding that indicates the character encoding that is used. The default is UTF8Encoding.

Attributes

Examples

The following example shows how to get the character encoding that is used for the message text.

Encoding bindingEncoding = binding.TextEncoding;
Dim bindingEncoding As Encoding = binding.TextEncoding

Applies to