EnvelopeVersion.None EnvelopeVersion.None EnvelopeVersion.None EnvelopeVersion.None Property

定义

获取不使用 SOAP 版本的信封版本。Gets the envelope version not using a version of SOAP.

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

属性值

不使用 SOAP 格式的信封版本。The envelope version not using a SOAP formatting.

示例

EnvelopeVersion envNotSOAP =  EnvelopeVersion.None;
Dim envNotSOAP As EnvelopeVersion = EnvelopeVersion.None

注解

如果使用的是 None 消息版本,这意味着没有写出 SOAP 信封,并且消息发出了正文内容。If the None message version is used this means that a SOAP envelope is not written out and the message emits the contents of the body. 这使得 Windows Communication Foundation (WCF)通道可以与需要不带 SOAP 格式的 XML 的终结点进行通信。This enables an Windows Communication Foundation (WCF) channel to communicate with an endpoint that is expecting XML with no SOAP formatting. XML 负载存在于消息正文中,当它遇到编码器时,只会发出此负载信息。The XML payload lives in the body of a message and is the only thing emitted when it hits the encoder.

同样,当收到任意 XML 块时,它都将包装在消息中以便向信道堆栈的上层传播。Similarly, when the arbitrary chunk of XML is received it is wrapped up in a Message for propagation up the channel stack. 将插入所需的标头,并将消息视作 SOAP 消息进行处理。The required headers are inserted and the message is processed as if it had been a SOAP message.

适用于