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: