FileWebResponse.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 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: