MessageVersion.None MessageVersion.None MessageVersion.None MessageVersion.None Property

定义

获取不使用 SOAP 或 WS-Addressing 的消息版本。Gets the message version that does not use SOAP or WS-Addressing.

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

属性值

不使用 SOAP 或 WS-Addressing 的 MessageVersionThe MessageVersion that does not use SOAP or WS-Addressing.

示例

MessageVersion msgVersion2 = MessageVersion.None;
Dim msgVersion2 As MessageVersion = MessageVersion.None

注解

None 包括 NoneNoneThe None consists of the None and None. 它为使用“纯旧式 XML”(POX) 样式消息传递提供支持。This provides support for using "plain old XML" (POX)-style messaging. 这样,启用基本 POX 消息传递就只是在服务上与使用 None 的文本编码器建立 HTTP 绑定。Enabling basic POX messaging is now a matter of setting up an HTTP binding on your service with a text encoder that uses None.

请注意,当使用 BasicHttpBinding 来配置服务,并且 MessageVersion 设置为 None 时,请求消息中的操作标头将会从响应消息中移除。Note that when a service is configured with the BasicHttpBinding and the MessageVersion is set to None, the action header in a request message is removed from the response message. 这与 ASMX 服务的工作方式一致。This is consistent with the way ASMX services work.

适用于