System.Web Namespace HttpCookieCollection Class
Gets a string array containing all the keys ( cookie names ) in the cookie collection.
[ VB ]
Public ReadOnly Property AllKeys As String ( )
[ C# ]
public string [ ] AllKeys {get;}
[ C++ ]
public: __property String* get_AllKeys ( );
[ JScript ]
public function get AllKeys ( ) : String [ ];
An array of cookie names.
The following example creates a string array containing the names of the cookies in a client's cookie collection.
[ VB ]
Dim myCookieNamesArray ( ) As String = Request.Cookies.AllKeys
[ C# ]
String [ ] myCookieNamesArray = Request.Cookies.AllKeys;
HttpCookieCollection Members