FileWebResponse.Headers Property

 

Gets a collection of header name/value pairs associated with the response.

Namespace:   System.Net
Assembly:  System (in System.dll)

override Headers : WebHeaderCollection with get

Property Value

Type: System.Net.WebHeaderCollection

A WebHeaderCollection that contains the header name/value pairs associated with the response.

The Headers property contains two name/value pairs, one for content length and one for content type, both of which are also exposed as properties, ContentLength and ContentType.

The following example uses the Headers property to retrieve the name/value pairs associated with the response.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: