C-DEngine 5.105

HttpListenerResponse..::..SetCookie Method

Adds or updates a cookie in the cookies sent with the response.

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

Syntax


public void SetCookie(
	Cookie cookie
)
Public Sub SetCookie ( _
	cookie As Cookie _
)
public:
void SetCookie(
	Cookie^ cookie
)

Parameters

cookie
Type: WebSocketSharp.Net..::..Cookie
A Cookie to set.

Exceptions


ExceptionCondition
ArgumentNullExceptioncookie is nullNothingnullptra null reference (Nothing in Visual Basic).
ArgumentExceptioncookie already exists in the cookies and couldn't be replaced.