CookieContainer Methods
.NET Framework 4
The CookieContainer type exposes the following members.
| Name | Description | |
|---|---|---|
|
Add(Cookie) | Adds a Cookie to a CookieContainer. This method uses the domain from the Cookie to determine which domain collection to associate the Cookie with. |
|
Add(CookieCollection) | Adds the contents of a CookieCollection to the CookieContainer. |
|
Add(Uri, Cookie) | Adds a Cookie to the CookieContainer for a particular URI. |
|
Add(Uri, CookieCollection) | Adds the contents of a CookieCollection to the CookieContainer for a particular URI. |
|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetCookieHeader | Gets the HTTP cookie header that contains the HTTP cookies that represent the Cookie instances that are associated with a specific URI. |
|
GetCookies | Gets a CookieCollection that contains the Cookie instances that are associated with a specific URI. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
SetCookies | Adds Cookie instances for one or more cookies from an HTTP cookie header to the CookieContainer for a specific URI. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |