SoapMessage.Headers Propriedade

Definição

Uma coleção dos cabeçalhos SOAP aplicados à solicitação ou resposta SOAP atual.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

Valor da propriedade

SoapHeaderCollection

Um SoapHeaderCollection dos cabeçalhos SOAP aplicados à solicitação ou resposta SOAP atual.A SoapHeaderCollection of the SOAP headers applied to the current SOAP request or SOAP response. null se não houver nenhum cabeçalho SOAP.null, if there are no SOAP headers.

Comentários

Os cabeçalhos SOAP são uma parte opcional de uma solicitação SOAP ou de uma resposta SOAP.SOAP headers are an optional portion of a SOAP request or SOAP response. Para obter mais detalhes sobre como usar cabeçalhos SOAP em XML Web Services criados usando o ASP.NET e seus clientes, consulte a SoapHeader classe.For more details on using SOAP headers in XML Web services created using ASP.NET and their clients, see the SoapHeader class.

Embora a Headers Propriedade possa ser acessada em qualquer estágio, ela é populada apenas com as informações de cabeçalho SOAP nos BeforeSerialize AfterDeserialize estágios e.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.

Aplica-se a