PackWebRequest::Headers Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the collection of header name/value pairs associated with the request.

Namespace:   System.IO.Packaging
Assembly:  PresentationCore (in PresentationCore.dll)

public:
property WebHeaderCollection^ Headers {
	virtual WebHeaderCollection^ get() override;
	virtual void set(WebHeaderCollection^ value) override;
}

Property Value

Type: System.Net::WebHeaderCollection^

A header collection object.

Package cache requests include a valid but otherwise empty header collection in their requests.

The Headers property is shared with the inner WebRequest (GetInnerRequest).

.NET Framework
Available since 3.0
Return to top
Show: