Click or drag to resize

WebHeaderCollectionAdd Method (String, String)

Adds a header with the specified name and value to the collection.

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

Parameters

name
Type: SystemString
A String that represents the name of the header to add.
value
Type: SystemString
A String that represents the value of the header to add.
Exceptions
ExceptionCondition
ArgumentNullExceptionname is or empty.
ArgumentException

name or value contains invalid characters.

-or-

name is a restricted header name.

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