BasicHttpBinding.TextEncoding Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 sets TextEncoding to Encoding.Unicode.
BasicHttpBinding binding = new BasicHttpBinding();
binding.TextEncoding = System.Text.Encoding.Unicode;
The value of this property can also be set in the configuration file.
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="Binding1"
textEncoding = "UnicodeFffeTextEncoding">
<security mode="None" />
</binding>
</basicHttpBinding>
</bindings>
</system.serviceModel>
</configuration>
Applies to
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.