Message.Version Message.Version Message.Version Message.Version Property


在派生类中重写时,获取消息的 SOAP 版本。When overridden in a derived class, gets the SOAP version of the message.

 abstract property System::ServiceModel::Channels::MessageVersion ^ Version { System::ServiceModel::Channels::MessageVersion ^ get(); };
public abstract System.ServiceModel.Channels.MessageVersion Version { get; }
member this.Version : System.ServiceModel.Channels.MessageVersion
Public MustOverride ReadOnly Property Version As MessageVersion


一个表示 SOAP 版本的 MessageVersion 对象。A MessageVersion object that represents the SOAP version.



消息的这个值不可变。This value is immutable for the message. 版本可能具有两个值:Soap11Soap12,它们分别与 SOAP 1.1 和 SOAP 1.2 对应。There are two possible values for the version: Soap11 and Soap12 that correspond to SOAP 1.1 and SOAP 1.2 respectively.

了解基础 SOAP 版本很重要,因为 Message 的结构与 SOAP 消息的结构紧密相关。Knowing the underlying SOAP version is important because the structure of Message is firmly correlated with that of a SOAP message.


继承者必须注意,在派生类中重写时,此方法为消息的 SOAP 版本返回 MessageVersion 对象。Inheritors must note that when overridden in a derived class, this method returns a MessageVersion object for the SOAP version of the message.