This documentation is archived and is not being maintained.

HttpCookieCollection.AllKeys Property

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

[Visual Basic]
Public ReadOnly Property AllKeys As String ()
public string[] AllKeys {get;}
public: __property String* get_AllKeys();
public function get AllKeys() : String[];

Property Value

An array of cookie names.


The following example creates a string array containing the names of the cookies in a client's cookie collection.

[Visual Basic] 
Dim MyCookieNamesArray() As String = Request.Cookies.AllKeys

String[] MyCookieNamesArray = Request.Cookies.AllKeys;

String* MyCookieNamesArray[] = Request->Cookies->AllKeys;

var myCookieNamesArray : String[] = Request.Cookies.AllKeys


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpCookieCollection Class | HttpCookieCollection Members | System.Web Namespace