HttpResponseMessageProperty.Headers 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從 HTTP 回應取得 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
屬性值
傳回 WebHeaderCollection,其中包含 HTTP 回應內的 HTTP 標頭。
範例
以下會示範如何從 HTTP 回應取得 HTTP 標頭:
WebHeaderCollection whCollection =
responseProperty.Headers;