Export (0) Print
Expand All

Cookie Members

Cookie overview

Public Constructors

public constructorCookie Constructor Overloaded. Initializes a new instance of the Cookie class, conforming to the Netscape specification. In general, an application doesn't need to construct a Cookie class since it is created automatically based on the Set-Cookie header received with the HTTP response.

Public Properties

public propertyComment Gets or sets a comment that the server can add to a Cookie.
public propertyCommentUri Gets or sets a URI comment that the server can provide with a Cookie.
public propertyDiscard Gets or sets the discard flag set by the server.
public propertyDomain Gets or sets the URI for which the Cookie is valid.
public propertyExpired Gets or sets the current state of the Cookie.
public propertyExpires Gets or sets the expiration date and time for the Cookie as a DateTime.
public propertyName Gets or sets the name for the Cookie.
public propertyPath Gets or sets the URIs to which the Cookie applies .
public propertyPort Gets or sets a list of TCP ports that the Cookie applies to.
public propertySecure Gets or sets the security level of a Cookie.
public propertyTimeStamp Gets the time when the cookie was issued as a DateTime.
public propertyValue Gets or sets the Value for the Cookie.
public propertyVersion Gets or sets the version of HTTP state maintenance to which the cookie conforms.

Public Methods

public methodEquals Overridden. Overrides the Equals method.
public methodGetHashCode Overridden. Overrides the GetHashCode method.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodToString Overridden. Overrides the ToString method.

Protected Methods

protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

Cookie Class | System.Net Namespace

Show:
© 2015 Microsoft