CookieContainer Members
.NET Framework 3.5
Provides a container for a collection of CookieCollection objects.
The CookieContainer type exposes the following members.
| Name | Description | |
|---|---|---|
|
CookieContainer | Overloaded. Initializes a new instance of the CookieContainer class. |
| Name | Description | |
|---|---|---|
|
Add | Overloaded. Adds a Cookie to a CookieContainer. |
|
Equals | 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.) |
| Name | Description | |
|---|---|---|
|
DefaultCookieLengthLimit | Represents the default maximum size, in bytes, of the Cookie instances that the CookieContainer can hold. This field is constant. |
|
DefaultCookieLimit | Represents the default maximum number of Cookie instances that the CookieContainer can hold. This field is constant. |
|
DefaultPerDomainCookieLimit | Represents the default maximum number of Cookie instances that the CookieContainer can reference per domain. This field is constant. |
| Name | Description | |
|---|---|---|
|
Capacity | Gets and sets the number of Cookie instances that a CookieContainer can hold. |
|
Count | Gets the number of Cookie instances that a CookieContainer currently holds. |
|
MaxCookieSize | Represents the maximum allowed length of a Cookie. |
|
PerDomainCapacity | Gets and sets the number of Cookie instances that a CookieContainer can hold per domain. |