Export (0) Print
Expand All

HttpCookieCollection Methods

The HttpCookieCollection type exposes the following members.

  Name Description
Public method Add Adds the specified cookie to the cookie collection.
Public method Clear Clears all cookies from the cookie collection.
Public method CopyTo Copies members of the cookie collection to an Array beginning at the specified index of the array.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method Get(Int32) Returns the HttpCookie item with the specified index from the cookie collection.
Public method Get(String) Returns the cookie with the specified name from the cookie collection.
Public method GetEnumerator Returns an enumerator that iterates through the NameObjectCollectionBase. (Inherited from NameObjectCollectionBase.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetKey Returns the key (name) of the cookie at the specified numerical index.
Public method GetObjectData Implements the ISerializable interface and returns the data needed to serialize the NameObjectCollectionBase instance. (Inherited from NameObjectCollectionBase.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method OnDeserialization Implements the ISerializable interface and raises the deserialization event when the deserialization is complete. (Inherited from NameObjectCollectionBase.)
Public method Remove Removes the cookie with the specified name from the collection.
Public method Set Updates the value of an existing cookie in a cookie collection.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  Name Description
Explicit interface implemetation Private method ICollection.CopyTo Copies the entire NameObjectCollectionBase to a compatible one-dimensional Array, starting at the specified index of the target array. (Inherited from NameObjectCollectionBase.)
Top
Show:
© 2014 Microsoft