C-DEngine 5.105

Cookie Constructor (String, String)

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

Namespace:  WebSocketSharp.Net
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public Cookie(
	string name,
	string value
)
Public Sub New ( _
	name As String, _
	value As String _
)
public:
Cookie(
	String^ name, 
	String^ value
)

Parameters

name
Type: String
A String that represents the Name of the cookie.
value
Type: String
A String that represents the Value of the cookie.

Exceptions


ExceptionCondition
WebSocketSharp.Net..::..CookieException

name is nullNothingnullptra null reference (Nothing in Visual Basic) or empty.

- or -

name contains an invalid character.

- or -

value is nullNothingnullptra null reference (Nothing in Visual Basic).

- or -

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