Click or drag to resize

Cookie Constructor (String, String)

Initializes a new instance of the Cookie class with the specified name and value.

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

Parameters

name
Type: SystemString
A String that represents the Name of the cookie.
value
Type: SystemString
A String that represents the Value of the cookie.
Exceptions
ExceptionCondition
CookieException

name is or empty.

- or -

name contains an invalid character.

- or -

value is .

- or -

value contains a string not enclosed in double quotes that contains an invalid character.

See Also