MtomMessageEncodingBindingElement.MessageVersion 屬性

定義

取得或設定已使用或需要使用的 SOAP 訊息和 WS-Addressing 版本。Gets or sets the SOAP message and WS-Addressing versions that are used or expected.

public:
 virtual property System::ServiceModel::Channels::MessageVersion ^ MessageVersion { System::ServiceModel::Channels::MessageVersion ^ get(); void set(System::ServiceModel::Channels::MessageVersion ^ value); };
public override System.ServiceModel.Channels.MessageVersion MessageVersion { get; set; }
member this.MessageVersion : System.ServiceModel.Channels.MessageVersion with get, set
Public Overrides Property MessageVersion As MessageVersion

屬性值

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

例外狀況

值為 nullThe value is null.

不允許值 NoneThe value None is not allowed.

備註

所使用的預設 MessageVersion 是由 WS-Addressing 1.0 版和 SOAP1.2 版所組成。The default MessageVersion used consists of the version of WS-Addressing 1.0 and SOAP1.2.

適用於