Click or drag to resize

WebHeaderCollectionAdd Method (HttpResponseHeader, String)

Adds the specified response header with the specified value to the collection.

Namespace:  Sfs2X.WebSocketSharp.Net
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public void Add(
	HttpResponseHeader header,
	string value
)

Parameters

header
Type: Sfs2X.WebSocketSharp.NetHttpResponseHeader
One of the HttpResponseHeader enum values, represents the response header to add.
value
Type: SystemString
A String that represents the value of the header to add.
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 response header.
See Also