Compartilhar via


HttpResponseMessageProperty.Headers Propriedade

Definição

Obtém os cabeçalhos HTTP da resposta HTTP.

public:
 property System::Net::WebHeaderCollection ^ Headers { System::Net::WebHeaderCollection ^ get(); };
public System.Net.WebHeaderCollection Headers { get; }
member this.Headers : System.Net.WebHeaderCollection
Public ReadOnly Property Headers As WebHeaderCollection

Valor da propriedade

WebHeaderCollection

Retorna um WebHeaderCollection que contém os cabeçalhos HTTP na resposta HTTP.

Exemplos

Isso mostra como obter os cabeçalhos HTTP da resposta HTTP:

WebHeaderCollection whCollection =
responseProperty.Headers;

Aplica-se a