This documentation is archived and is not being maintained.

HttpCookieCollection Properties

The properties of the HttpCookieCollection class are listed here. For a complete list of HttpCookieCollection class members, see the HttpCookieCollection Members topic.

Public Properties

public propertyAllKeys Gets a string array containing all the keys (cookie names) in the cookie collection.
public propertyCount (inherited from NameObjectCollectionBase) Gets the number of key-and-value pairs contained in the NameObjectCollectionBase instance.
public propertyItem Overloaded. Gets the cookie with the specified name from the cookie collection. This property is overloaded to allow retrieval of cookies by either name or numerical index.

In C#, this property is the indexer for the HttpCookieCollection class.

public propertyKeys (inherited from NameObjectCollectionBase) Gets a NameObjectCollectionBase.KeysCollection instance that contains all the keys in the NameObjectCollectionBase instance.

Protected Properties

protected propertyIsReadOnly (inherited from NameObjectCollectionBase) Gets or sets a value indicating whether the NameObjectCollectionBase instance is read-only.

See Also

HttpCookieCollection Class | System.Web Namespace

Show: