HttpCookie::HasKeys Property
.NET Framework (current version)
Gets a value indicating whether a cookie has subkeys.
Assembly: System.Web (in System.Web.dll)
Property Value
Type: System::Booleantrue if the cookie has subkeys, otherwise, false. The default value is false.
The following code example examines each member of a cookie collection for multiple values. If a cookie's HasKeys property is true, indicating that multiple values are present, this example copies the value names into one string array and the corresponding values into another string array. For an example of how to create multiple values for a cookie, see Values.
.NET Framework
Available since 1.1
Available since 1.1
Show: