EnvelopeVersion.None 屬性

定義

取得不使用 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.

適用於