This documentation is archived and is not being maintained.

Cookie Members

Provides a set of properties and methods that are used to manage cookies. This class cannot be inherited.

The Cookie type exposes the following members.

Public method Cookie Overloaded. Initializes a new instance of the Cookie class. In general, an application does not need to construct a Cookie class because it is created automatically based on the Set-Cookie header received with the HTTP response.

Public method Equals Overrides the Object.Equals method. (Overrides Object.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Overrides the Object.GetHashCode method. (Overrides Object.GetHashCode().)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Overrides the Object.ToString method. (Overrides Object.ToString().)

Public property Comment Gets or sets a comment that the server can add to a Cookie.
Public property CommentUri Gets or sets a URI comment that the server can provide with a Cookie.
Public property Discard Gets or sets the discard flag set by the server.
Public property Domain Gets or sets the URI for which the Cookie is valid.
Public property Expired Gets or sets the current state of the Cookie.
Public property Expires Gets or sets the expiration date and time for the Cookie as a DateTime.
Public property HttpOnly Determines whether a page script or other active content can access this cookie.
Public property Name Gets or sets the name for the Cookie.
Public property Path Gets or sets the URIs to which the Cookie applies.
Public property Port Gets or sets a list of TCP ports that the Cookie applies to.
Public property Secure Gets or sets the security level of a Cookie.
Public property TimeStamp Gets the time when the cookie was issued as a DateTime.
Public property Value Gets or sets the Value for the Cookie.
Public property Version Gets or sets the version of HTTP state maintenance to which the cookie conforms.