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).

适用于