Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 3.0
Class Library
System.Web
HttpResponse Class
 Headers Property

  Switch on low bandwidth view
This page is specific to
.NET Framework 3.0

Other versions are also available for the following:
HttpResponse.Headers Property
This property supports the ASP.NET infrastructure and is not intended to be used directly from your code.

Namespace: System.Web
Assembly: System.Web (in system.web.dll)

Visual Basic (Declaration)
Public ReadOnly Property Headers As NameValueCollection
Visual Basic (Usage)
Dim instance As HttpResponse
Dim value As NameValueCollection

value = instance.Headers
C#
public NameValueCollection Headers { get; }
C++
public:
property NameValueCollection^ Headers {
    NameValueCollection^ get ();
}
J#
/** @property */
public NameValueCollection get_Headers ()
JScript
public function get Headers () : NameValueCollection
XAML
Not applicable.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
System.PlatformNotSupportedException on IIS6      Matt Fowler   |   Edit   |   Show History
Trying to access this property while running ASP.NET under any configuration except IIS7 with Integrated Pipeline mode enabled will result in a System.PlatformNotSupportedException being thrown.
Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker