Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

CookieContainer Members

Provides a container for a collection of CookieCollection objects.

The following tables list the members exposed by the CookieContainer type.

  Name Description
Public method CookieContainer Overloaded. Initializes a new instance of the CookieContainer class.
Top
  Name Description
Public field Static DefaultCookieLengthLimit Represents the default maximum size, in bytes, of the Cookie instances that the CookieContainer can hold. This field is constant.
Public field Static DefaultCookieLimit Represents the default maximum number of Cookie instances that the CookieContainer can hold. This field is constant.
Public field Static DefaultPerDomainCookieLimit Represents the default maximum number of Cookie instances that the CookieContainer can reference per domain. This field is constant.
Top
  Name Description
Public property Capacity Gets and sets the number of Cookie instances that a CookieContainer can hold.
Public property Count Gets the number of Cookie instances that a CookieContainer currently holds.
Public property MaxCookieSize Represents the maximum allowed length of a Cookie.
Public property PerDomainCapacity Gets and sets the number of Cookie instances that a CookieContainer can hold per domain.
Top
(see also Protected Methods )
  Name Description
Public method Add Overloaded. Adds a Cookie to a CookieContainer.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method GetCookieHeader Gets the HTTP cookie header that contains the HTTP cookies that represent the Cookie instances that are associated with a specific URI.
Public method GetCookies Gets a CookieCollection that contains the Cookie instances that are associated with a specific URI.
Public method GetHashCode  Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)
Public method GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method SetCookies Adds Cookie instances for one or more cookies from an HTTP cookie header to the CookieContainer for a specific URI.
Public method ToString  Returns a String that represents the current Object. (Inherited from Object.)
Top
  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (Inherited from Object.)
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.