NetMsmqBinding.EnvelopeVersion 属性

定义

获取此绑定处理的消息将要使用的 SOAP 版本。

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 的值。 默认值为 SOAP 1.2。

示例

下面的代码演示如何获取 EnvelopeVersion

NetMsmqBinding binding = new NetMsmqBinding();
EnvelopeVersion envelopeVersion = binding.EnvelopeVersion;

适用于