NetTcpBinding.EnvelopeVersion 属性

定义

获取此绑定处理的消息将要使用的 SOAP 版本。Gets the version of SOAP that is used for messages processed by this binding.

public:
 property System::ServiceModel::EnvelopeVersion ^ EnvelopeVersion { System::ServiceModel::EnvelopeVersion ^ get(); };
public System.ServiceModel.EnvelopeVersion EnvelopeVersion { get; }
member this.EnvelopeVersion : System.ServiceModel.EnvelopeVersion
Public ReadOnly Property EnvelopeVersion As EnvelopeVersion

属性值

与此绑定一起使用的 EnvelopeVersion 的值。The value of the EnvelopeVersion that is used with this binding. 值为 SOAP 1.2。The value is SOAP 1.2.

示例

此示例演示如何获取 EnvelopeVersion 值。This example shows how to get the EnvelopeVersion value.

EnvelopeVersion envelopeVersion = binding.EnvelopeVersion;

注解

该属性总是返回 SOAP 1.2。The property always returns SOAP 1.2. 此值不能更改。This value cannot be changed.

适用于