System.Net.CookieContainer: Method Members

The methods of System.Net.CookieContainer are listed below. For a list of all members, see the CookieContainer Members list.

See Also: Inherited members from System.Object

Public Methods

Add(Cookie)

Adds a System.Net.Cookie to a System.Net.CookieContainer. This method uses the domain from the System.Net.Cookie to determine which domain collection to associate the System.Net.Cookie with.

Add(CookieCollection)

Adds the contents of a System.Net.CookieCollection to the System.Net.CookieContainer.

Add(Uri, Cookie)

Adds a System.Net.Cookie to the System.Net.CookieContainer for a particular URI.

Add(Uri, CookieCollection)

Adds the contents of a System.Net.CookieCollection to the System.Net.CookieContainer for a particular URI.

GetCookieHeader(Uri) : string

Gets the HTTP cookie header that contains the HTTP cookies that represent the System.Net.Cookie instances that are associated with a specific URI.

GetCookies(Uri) : CookieCollection

Gets a System.Net.CookieCollection that contains the System.Net.Cookie instances that are associated with a specific URI.

SetCookies(Uri, string)

Adds System.Net.Cookie instances for one or more cookies from an HTTP cookie header to the System.Net.CookieContainer for a specific URI.