Click or drag to resize

WebHeaderCollectionAdd Method (String)

Adds the specified header 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(
	string header
)

Parameters

header
Type: SystemString
A String that represents the header with the name and value separated by a colon (':').
Exceptions
ExceptionCondition
ArgumentNullExceptionheader is , empty, or the name part of header is empty.
ArgumentException

header doesn't contain a colon.

-or-

header is a restricted header.

-or-

The name or value part of header contains invalid characters.

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