Click or drag to resize

WebHeaderCollectionSet Method (String, String)

Sets the specified header to the specified value.

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

Parameters

name
Type: SystemString
A String that represents the name of the header to set.
value
Type: SystemString
A String that represents the value of the header to set.
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