WSHttpBindingBase.TextEncoding Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public Encoding TextEncoding { get; set; }

Property Value

Type: System.Text.Encoding

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

This example shows how to get the maximum size for a message.

Encoding textEncoding =
    binding1.TextEncoding;

.NET Framework
Available since 3.0
Return to top
Show: