MessageEncoder.MessageVersion MessageEncoder.MessageVersion MessageEncoder.MessageVersion MessageEncoder.MessageVersion Property

定義

在衍生類別中覆寫時,會取得編碼器使用的訊息版本值。When overridden in a derived class, gets the message version value that is used by the encoder.

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

屬性值

編碼器使用的 MessageVersionThe MessageVersion that is used by the encoder.

範例

下列程式碼會示範如何實作 MessageVersion 屬性。The following code shows how to implement the MessageVersion property.

public override MessageVersion MessageVersion
{
    get 
    {
        return this.factory.MessageVersion;
    }
}

備註

指定與訊息及其交換相關聯的 SOAP 和 WS-Addressing 版本。Specifies the versions of SOAP and WS-Addressing associated with a message and its exchange. 如果不使用 SOAP 版本,應該覆寫這個屬性來傳回 NoneIf SOAP versions are not to be used, this property should be overridden to return None.

適用於