Provides a collection container for instances of the Cookie class.
Assembly: System (in System.dll)
Thetype exposes the following members.
|Count||Gets the number of cookies contained in a .|
|IsReadOnly||Gets a value that indicates whether a is read-only.|
|IsSynchronized||Gets a value that indicates whether access to a is thread safe.|
|Item(Int32)||Gets the Cookie with a specific index from a .|
|Item(String)||Gets the Cookie with a specific name from a .|
|SyncRoot||Gets an object to synchronize access to the .|
|Add(Cookie)||Adds a Cookie to a .|
|Add(CookieCollection)||Adds the contents of a to the current instance.|
|CopyTo(Array, Int32)||Copies the elements of a to an instance of the Array class, starting at a particular index.|
|CopyTo(Cookie, Int32)||Copies the elements of this to a Cookie array starting at the specified index of the target array.|
|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.)|
|GetEnumerator||Gets an enumerator that can iterate through a .|
|GetHashCode||Serves as the default hash function. (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.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
|AsParallel||Enables parallelization of a query. (Defined by ParallelEnumerable.)|
|AsQueryable||Converts an IEnumerable to an IQueryable. (Defined by Queryable.)|
|Cast(TResult)||Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)|
|OfType(TResult)||Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)|
|ICollection.CopyTo||Infrastructure. [Supported in the .NET Framework 4.5.1 only] For a description of this member, see CopyTo.|
|ICollection.IsSynchronized||Infrastructure. [Supported in the .NET Framework 4.5.1 only] For a description of this member, see IsSynchronized.|
|ICollection.SyncRoot||Infrastructure. [Supported in the .NET Framework 4.5.1 only] For a description of this member, see SyncRoot.|
The 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.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.