Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets the headers that are associated with this response from the server.
Namespace: System.Net
Assembly: System.Http (in System.Http.dll)
Syntax
'Declaration
Public Overrides ReadOnly Property Headers As WebHeaderCollection
public override WebHeaderCollection Headers { get; }
public:
virtual property WebHeaderCollection^ Headers {
WebHeaderCollection^ get () override;
}
abstract Headers : WebHeaderCollection with get
override Headers : WebHeaderCollection with get
override function get Headers () : WebHeaderCollection
Property Value
Type: System.Net. . :: . .WebHeaderCollection
A WebHeaderCollection that contains the header information returned with the response.
Remarks
The Headers property is a collection of name/value pairs that contain the HTTP header values returned with the response. Common header information returned from the Internet resource is exposed as properties of the HttpWebResponse class. The following table lists common headers that the API exposes as properties.
Header |
Property |
---|---|
Content-Encoding |
|
Content-Length |
|
Content-Type |
|
Last-Modified |
|
Server |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.