HttpResponseBase.AddHeader Method (String, String)

 
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.

Adds an HTTP header to the current response. This method is provided for compatibility with earlier versions of ASP.

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

abstract AddHeader : 
        name:string *
        value:string -> unit
override AddHeader : 
        name:string *
        value:string -> unit

Parameters

name
Type: System.String

The name of the HTTP header to add value to.

value
Type: System.String

The string to add to the header.

Exception Condition
NotImplementedException

Always.

.NET Framework
Available since 3.5
Return to top
Show: