CookieCollection.Add Method (CookieCollection)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Adds the contents of a CookieCollection to the current instance.

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

Public Sub Add (
	cookies As CookieCollection
)

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: