AppendHeader Method

HttpResponseWrapper.AppendHeader Method (String, String)

.NET Framework (current version)
 

Adds an HTTP header to the current response.

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

public override void AppendHeader(
	string name,
	string value
)

Parameters

name
Type: System.String

The name of the HTTP header to add to the current response.

value
Type: System.String

The value of the header.

Exception Condition
HttpException

The header was appended after the HTTP headers were sent.

.NET Framework
Available since 3.5
Return to top
Show:
© 2016 Microsoft