WriteEncoding Property

WebHttpBindingElement.WriteEncoding Property

 

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

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

[ConfigurationPropertyAttribute("writeEncoding", DefaultValue = "utf-8")]
public Encoding WriteEncoding { get; set; }

Property Value

Type: System.Text.Encoding

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

Exception Condition
ArgumentNullException

The value set is null.

.NET Framework
Available since 3.5
Return to top
Show:
© 2016 Microsoft