C-DEngine 5.105

Cookie Constructor (String, String, String)

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

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

Syntax


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

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.
path
Type: String
A String that represents the value of the Path attribute 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.