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.

WebHeaderCollection::Item Property (HttpResponseHeader)

 

Gets or sets the specified response header.

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

public:
property String^ default[
	HttpResponseHeader header
] {
	String^ get(HttpResponseHeader header);
	void set(HttpResponseHeader header, String^ value);
}

Parameters

header
Type: System.Net::HttpResponseHeader

The response header value.

Property Value

Type: System::String^

A String instance containing the specified header.

Exception Condition
ArgumentOutOfRangeException

The length of value is greater than 65535.

InvalidOperationException

This WebHeaderCollection instance does not allow instances of HttpResponseHeader.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft