System.Net.Cookie Members

The members of System.Net.Cookie are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Net.Cookie class.

Initializes a new instance of the System.Net.Cookie class with a specified Cookie.Name and Cookie.Value.

Initializes a new instance of the System.Net.Cookie class with a specified Cookie.Name, Cookie.Value, and Cookie.Path.

Initializes a new instance of the System.Net.Cookie class with a specified Cookie.Name, Cookie.Value, Cookie.Path, and Cookie.Domain.

Public Properties

Commentstring.

Gets or sets a comment that the server can add to a System.Net.Cookie.

CommentUriUri.

Gets or sets a URI comment that the server can provide with a System.Net.Cookie.

Discardbool.

Gets or sets the discard flag set by the server.

Domainstring.

Gets or sets the URI for which the System.Net.Cookie is valid.

Expiredbool.

Gets or sets the current state of the System.Net.Cookie.

ExpiresDateTime.

Gets or sets the expiration date and time for the System.Net.Cookie as a DateTime.

HttpOnlybool.

Determines whether a page script or other active content can access this cookie.

Namestring.

Gets or sets the name for the System.Net.Cookie.

Pathstring.

Gets or sets the URIs to which the System.Net.Cookie applies.

Portstring.

Gets or sets a list of TCP ports that the System.Net.Cookie applies to.

Securebool.

Gets or sets the security level of a System.Net.Cookie.

[read-only]
TimeStampDateTime.

Gets the time when the cookie was issued as a DateTime.

Valuestring.

Gets or sets the Cookie.Value for the System.Net.Cookie.

Versionint.

Gets or sets the version of HTTP state maintenance to which the cookie conforms.

Public Methods

override
Equals(object) : bool

Overrides the object.Equals(object) method.

override
GetHashCode() : int

Overrides the object.GetHashCode method.

override
ToString() : string

Overrides the object.ToString method.