This documentation is archived and is not being maintained.
.NET Framework 2.0
Provides a set of properties and methods that are used to manage cookies. This class cannot be inherited.
The following tables list the members exposed by the Cookie type.
|Comment||Gets or sets a comment that the server can add to a Cookie.|
|CommentUri||Gets or sets a URI comment that the server can provide with a Cookie.|
|Discard||Gets or sets the discard flag set by the server.|
|Domain||Gets or sets the URI for which the Cookie is valid.|
|Expired||Gets or sets the current state of the Cookie.|
|Expires||Gets or sets the expiration date and time for the Cookie as a DateTime.|
|HttpOnly||Determines whether a page script or other active content can access this cookie.|
|Name||Gets or sets the name for the Cookie.|
|Path||Gets or sets the URIs to which the Cookie applies.|
|Port||Gets or sets a list of TCP ports that the Cookie applies to.|
|Secure||Gets or sets the security level of a Cookie.|
|TimeStamp||Gets the time when the cookie was issued as a DateTime.|
|Value||Gets or sets the Value for the Cookie.|
|Version||Gets or sets the version of HTTP state maintenance to which the cookie conforms.|
(see also Protected Methods )
|GetHashCode||Overridden. Overrides the Object.GetHashCode method.|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|ReferenceEquals||Determines whether the specified Object instances are the same instance. (Inherited from Object.)|
|ToString||Overridden. Overrides the Object.ToString method.|