MtomMessageEncodingBindingElement 建構函式

定義

初始化 MtomMessageEncodingBindingElement 類別的新執行個體。Initializes a new instance of the MtomMessageEncodingBindingElement class.

多載

MtomMessageEncodingBindingElement()

初始化 MtomMessageEncodingBindingElement 類別的新執行個體。Initializes a new instance of the MtomMessageEncodingBindingElement class.

MtomMessageEncodingBindingElement(MessageVersion, Encoding)

使用指定的訊息版本和字元編碼,初始化 MtomMessageEncodingBindingElement 類別的新執行個體。Initializes a new instance of the MtomMessageEncodingBindingElement class with a specified message version and character encoding.

MtomMessageEncodingBindingElement()

初始化 MtomMessageEncodingBindingElement 類別的新執行個體。Initializes a new instance of the MtomMessageEncodingBindingElement class.

public:
 MtomMessageEncodingBindingElement();
public MtomMessageEncodingBindingElement ();
Public Sub New ()

備註

所使用的預設 MessageVersion 是由 WS-Addressing 1.0 版和 SOAP1.2 版所組成。The default MessageVersion used consists of the version of WS-Addressing 1.0 and SOAP1.2. 預設的字元編碼為 UTF-8。The default character encoding is UTF-8.

MtomMessageEncodingBindingElement(MessageVersion, Encoding)

使用指定的訊息版本和字元編碼,初始化 MtomMessageEncodingBindingElement 類別的新執行個體。Initializes a new instance of the MtomMessageEncodingBindingElement class with a specified message version and character encoding.

public:
 MtomMessageEncodingBindingElement(System::ServiceModel::Channels::MessageVersion ^ messageVersion, System::Text::Encoding ^ writeEncoding);
public MtomMessageEncodingBindingElement (System.ServiceModel.Channels.MessageVersion messageVersion, System.Text.Encoding writeEncoding);
new System.ServiceModel.Channels.MtomMessageEncodingBindingElement : System.ServiceModel.Channels.MessageVersion * System.Text.Encoding -> System.ServiceModel.Channels.MtomMessageEncodingBindingElement

參數

messageVersion
MessageVersion

針對 SOAP 訊息所使用的 MessageVersionThe MessageVersion that is used for the SOAP message.

writeEncoding
Encoding

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

例外狀況

messageVersionencodingnullmessageVersion or encoding is null.

messageVersion 設定為 NonemessageVersion is set to None.

備註

所使用的預設 MessageVersion 是由 WS-Addressing 1.0 版和 SOAP1.2 版所組成。The default MessageVersion used consists of the version of WS-Addressing 1.0 and SOAP1.2. 預設的字元編碼為 UTF-8。The default character encoding is UTF-8. 根據預設,支援的字元編碼為 UTF-8、Unicode 和 Big Endian Unicode。The character encodings supported by default are UTF-8, Unicode, and Big Endian Unicode.

適用於