Editar

Compartilhar via


SoapMessage.Headers Property

Definition

A collection of the SOAP headers applied to the current SOAP request or SOAP response.

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

Property Value

A SoapHeaderCollection of the SOAP headers applied to the current SOAP request or SOAP response. null, if there are no SOAP headers.

Remarks

SOAP headers are an optional portion of a SOAP request or SOAP response. For more details on using SOAP headers in XML Web services created using ASP.NET and their clients, see the SoapHeader class.

Although the Headers property can be accessed at any stage, it is only populated with the SOAP header information in the BeforeSerialize and AfterDeserialize stages.

Applies to