Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpResponse::AddHeader Method (String^, String^)

 

Adds an HTTP header to the output stream. AddHeader is provided for compatibility with earlier versions of ASP.

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

public:
void AddHeader(
	String^ name,
	String^ value
)

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.

AddHeader is the same as AppendHeader and is provided only for compatibility with earlier versions of ASP. With ASP.NET, use AppendHeader.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft