SoapMessage.Headers 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
套用至目前 SOAP 要求或 SOAP 回應的 SOAP 標頭集合。
public:
property System::Web::Services::Protocols::SoapHeaderCollection ^ Headers { System::Web::Services::Protocols::SoapHeaderCollection ^ get(); };
public System.Web.Services.Protocols.SoapHeaderCollection Headers { get; }
member this.Headers : System.Web.Services.Protocols.SoapHeaderCollection
Public ReadOnly Property Headers As SoapHeaderCollection
屬性值
SoapHeaderCollection 套用至目前 SOAP 要求或 SOAP 回應的 SOAP 標頭集合。 如果沒有 SOAP 標頭,則為 null。
備註
SOAP 標頭是 SOAP 要求或 SOAP 回應的選擇性部分。 如需在使用 ASP.NET 及其用戶端所建立之 XML Web 服務中使用 SOAP 標頭的詳細資訊,請參閱 類別 SoapHeader 。
Headers雖然屬性可以在任何階段存取,但它只會填入 和 AfterDeserialize 階段中的 BeforeSerialize SOAP 標頭資訊。