August 2003
Intermediate to advanced
928 pages
32h 1m
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 CookieCollection( ); // Public Instance Properties public int Count{get; } // implements ICollection public bool IsReadOnly{get; } public bool IsSynchronized{get; } // implements ICollection public object SyncRoot{get; } // implements ICollection public Cookie this[intindex]{get; } public Cookie this[stringname]{get; } // Public Instance Methods public void Add(Cookiecookie); public void Add(CookieCollectioncookies); public void CopyTo(Arrayarray, intindex); // implements ICollection public IEnumerator GetEnumerator( ); // implements IEnumerable }
CookieContainer.GetCookies( ),
HttpWebResponse.Cookies
CookieContainer.Add( ),
HttpWebResponse.Cookies