







![]() ![]() |
C# Webserver |
ResponseCookie Constructor (String, String, DateTime) |
ResponseCookie Class See Also Send Feedback |
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
Exception | Condition |
---|---|
System..::.ArgumentNullException | id or content is null |
System..::.ArgumentException | id is empty |