PackWebRequest.Headers 屬性

定義

取得或設定與此要求相關聯的標頭名稱/值組之集合。Gets or sets the collection of header name/value pairs associated with the request.

public:
 virtual property System::Net::WebHeaderCollection ^ Headers { System::Net::WebHeaderCollection ^ get(); void set(System::Net::WebHeaderCollection ^ value); };
public override System.Net.WebHeaderCollection Headers { get; set; }
member this.Headers : System.Net.WebHeaderCollection with get, set
Public Overrides Property Headers As WebHeaderCollection

屬性值

WebHeaderCollection

標頭集合物件。A header collection object.

備註

套件快取要求在其要求中包含有效但空白的標頭集合。Package cache requests include a valid but otherwise empty header collection in their requests.

Headers屬性會與內部 WebRequest (GetInnerRequest) 共用。The Headers property is shared with the inner WebRequest (GetInnerRequest).

適用於