MtomMessageEncodingBindingElement.WriteEncoding 屬性

定義

取得或設定用於格式化文字訊息字元的編碼。Gets or sets the encoding that is used to format the characters in the text message.

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

屬性值

用來格式化文字訊息字元的 EncodingThe Encoding that is used to format the characters in the text message.

屬性

例外狀況

值為 nullThe value is null.

此值不是有效的文字編碼值。The value is not valid text encoding value.

備註

預設的文字編碼是 UTF-8 格式。The default text encoding is the UTF-8 format. 其他可能的編碼包括 Unicode 與 Big Endian Unicode。Other possible encodings include, for example, Unicode and Big Endian Unicode.

適用於