System.Web.HttpCookieCollection: Method Members

The methods of System.Web.HttpCookieCollection are listed below. For a list of all members, see the HttpCookieCollection Members list.

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

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.