Share via


SoapMessage.Headers 屬性

定義

套用至目前 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 標頭資訊。

適用於