CookieCollection.Add Method (CookieCollection)

 

Adds the contents of a CookieCollection to the current instance.

Namespace:   System.Net
Assembly:  System (in System.dll)

member Add : 
        cookies:CookieCollection -> unit

Parameters

cookies
Type: System.Net.CookieCollection

The CookieCollection to be added.

Exception Condition
ArgumentNullException

cookies is null.

Each Cookie is read from the CookieCollectioncookies parameter and added to the current instance.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: