WSHttpBindingBase.MessageEncoding 属性

定义

获取或设置一个值,该值指示是使用 MTOM 还是文本/XML 对 SOAP 消息进行编码。

public:
 property System::ServiceModel::WSMessageEncoding MessageEncoding { System::ServiceModel::WSMessageEncoding get(); void set(System::ServiceModel::WSMessageEncoding value); };
public System.ServiceModel.WSMessageEncoding MessageEncoding { get; set; }
member this.MessageEncoding : System.ServiceModel.WSMessageEncoding with get, set
Public Property MessageEncoding As WSMessageEncoding

属性值

WSMessageEncoding

WSMessageEncoding 的值,指示是使用 MTOM 还是文本对 SOAP 消息进行编码。 默认值是 Text

示例

此示例演示如何获取消息的最大大小。

WSMessageEncoding messageEncoding =
binding1.MessageEncoding;
Dim messageEncoding As WSMessageEncoding = binding1.MessageEncoding

适用于