C-DEngine 5.105

WebHeaderCollection..::..Item Property

Gets or sets the specified request header in the collection.

Namespace:  WebSocketSharp.Net
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public string this[
	HttpRequestHeader header
] { get; set; }
Public Default Property Item ( _
	header As HttpRequestHeader _
) As String
	Get
	Set
public:
property String^ default[HttpRequestHeader^ header] {
	String^ get (HttpRequestHeader^ header);
	void set (HttpRequestHeader^ header, String^ value);
}

Parameters

header
Type: WebSocketSharp.Net..::..HttpRequestHeader
One of the HttpRequestHeader enum values, represents the request header to get or set.

Field Value

A String that represents the value of the request header.

Exceptions


ExceptionCondition
ArgumentException

header is a restricted header.

-or-

value contains invalid characters.

ArgumentOutOfRangeException The length of value is greater than 65,535 characters.
InvalidOperationException The current WebHeaderCollection instance doesn't allow the request header.