This documentation is archived and is not being maintained.

CookieCollection Class

Provides a collection container for instances of the Cookie class.

For a list of all members of this type, see CookieCollection Members.


[Visual Basic]
Public Class CookieCollection
   Implements ICollection, IEnumerable
public class CookieCollection : ICollection, IEnumerable
public __gc class CookieCollection : public ICollection,
class CookieCollection implements ICollection, IEnumerable

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


The CookieCollection class implements an ICollection interface to provide a general mechanism for handling collections of cookies. For example, this is useful in the case where an application is designed to store cookies for multiple servers.


Namespace: System.Net

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

Assembly: System (in System.dll)

See Also

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