ResponseCookie Constructor (String, String, DateTime)

HttpServer.dll

Constructor.

Namespace:  HttpServer
Assembly:  HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public ResponseCookie(
	string id,
	string content,
	DateTime expiresAt
)
Visual Basic (Declaration)
Public Sub New ( _
	id As String, _
	content As String, _
	expiresAt As DateTime _
)
Visual C++
public:
ResponseCookie(
	String^ id, 
	String^ content, 
	DateTime expiresAt
)

Parameters

id
Type: System..::.String
cookie identifier
content
Type: System..::.String
cookie content
expiresAt
Type: System..::.DateTime
cookie expiration date. Use DateTime.MinValue for session cookie.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionid or content is null
System..::.ArgumentExceptionid is empty

See Also