HttpCookieCollection Methods
.NET Framework 4.5
The HttpCookieCollection type exposes the following members.
| Name | Description | |
|---|---|---|
|
Add | Adds the specified cookie to the cookie collection. |
|
Clear | Clears all cookies from the cookie collection. |
|
CopyTo | Copies members of the cookie collection to an Array beginning at the specified index of the array. |
|
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
|
Get(Int32) | Returns the HttpCookie item with the specified index from the cookie collection. |
|
Get(String) | Returns the cookie with the specified name from the cookie collection. |
|
GetEnumerator | Returns an enumerator that iterates through the NameObjectCollectionBase. (Inherited from NameObjectCollectionBase.) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetKey | Returns the key (name) of the cookie at the specified numerical index. |
|
GetObjectData | Implements the ISerializable interface and returns the data needed to serialize the NameObjectCollectionBase instance. (Inherited from NameObjectCollectionBase.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
OnDeserialization | Implements the ISerializable interface and raises the deserialization event when the deserialization is complete. (Inherited from NameObjectCollectionBase.) |
|
Remove | Removes the cookie with the specified name from the collection. |
|
Set | Updates the value of an existing cookie in a cookie collection. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
ICollection.CopyTo | Copies the entire NameObjectCollectionBase to a compatible one-dimensional Array, starting at the specified index of the target array. (Inherited from NameObjectCollectionBase.) |