March 2002
Intermediate to advanced
864 pages
31h 8m
English
CookieCollection
This class is a specialized collection for holding cookies.
It’s used by HttpWebResponse to represent a set
of cookies returned by a server. By default, the
IsReadOnly property is set to
true.
public class CookieCollection : ICollection, IEnumerable { // Public Constructors public method CookieCollection(); // Public Instance Properties public field int Count{get; } // implements ICollection public field bool IsReadOnly{get; } public field bool IsSynchronized{get; } // implements ICollection public field object SyncRoot{get; } // implements ICollection public field Cookie this{get; } public field Cookie this{get; } // Public Instance Methods public method void Add(Cookie cookie); public method void Add(CookieCollection cookies); public method void CopyTo(Array array, int index); // implements ICollection public method IEnumerator GetEnumerator(); // implements IEnumerable }
CookieContainer.GetCookies(), HttpWebResponse.Cookies
CookieContainer.Add(), HttpWebResponse.Cookies