System.Web.HttpCookieCollection Members

The members of System.Web.HttpCookieCollection are listed below.

See Also: Inherited members from System.Collections.Specialized.NameObjectCollectionBase

Public Constructors

Initializes a new instance of the System.Web.HttpCookieCollection class.

Public Properties

[read-only]
AllKeysstring[].

Gets a string array containing all the keys (cookie names) in the cookie collection.

[read-only]
default property
Item(int)HttpCookie. Documentation for this section has not yet been entered.
[read-only]
default property
Item(string)HttpCookie. Documentation for this section has not yet been entered.

Public Methods

Add(HttpCookie)

Adds the specified cookie to the cookie collection.

Clear()

Clears all cookies from the cookie collection.

CopyTo(Array, int)

Copies members of the cookie collection to an Array beginning at the specified index of the array.

Get(int) : HttpCookie

Returns the System.Web.HttpCookie item with the specified index from the cookie collection.

Get(string) : HttpCookie

Returns the cookie with the specified name from the cookie collection.

GetKey(int) : string

Returns the key (name) of the cookie at the specified numerical index.

Remove(string)

Removes the cookie with the specified name from the collection.

Set(HttpCookie)

Updates the value of an existing cookie in a cookie collection.