Export (0) Print
Expand All

CookieContainer.Count Property

Gets the number of Cookie instances a CookieContainer currently holds.

[Visual Basic]
Public ReadOnly Property Count As Integer
[C#]
public int Count {get;}
[C++]
public: __property int get_Count();
[JScript]
public function get Count() : int;

Property Value

The number of Cookie instances a CookieContainer currently holds. This is the total of Cookie instances in all domains.

Remarks

The default value of this property is DefaultCookieLimit. If Count equals or exceeds Capacity, one or more Cookie instances are removed from the container. Enough instances are removed to bring Count below Capacity as follows: if there are expired Cookie instances in scope they are cleaned up. If not, then the least recently used CookieCollection is found and removed from the container.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

CookieContainer Class | CookieContainer Members | System.Net Namespace | Cookie | CookieCollection | CookieContainer | CookieException

Show:
© 2014 Microsoft