ZennoLab Assemblies Documentation
Add(IEnumerable<ICookieItem>) Method
Example 
ZennoLab.CommandCenter Namespace > CookieContainer Class > Add Method : Add(IEnumerable<ICookieItem>) Method

Type: System.Collection.Generic.IEnumerable<String>

The cookie items collection.

Adds the cookie items collection to the container.
Syntax
public void Add( 
   IEnumerable<ICookieItem> items
)

Parameters

items

Type: System.Collection.Generic.IEnumerable<String>

The cookie items collection.

Example
The following code example demonstrates the Add method.
// create new cookie item
var item = project.Profile.CookieContainer.Create(".zennolab.com", "/", "asd", "123", DateTime.Now.AddYears(1), false, false, false);
var item2 = project.Profile.CookieContainer.Create(".zennolab.com", "/", "qwe", "zxc", DateTime.Now.AddYears(1), false, false, false);
// add item to container
project.Profile.CookieContainer.Add(new [] { item, item2 });
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

CookieContainer Class
CookieContainer Members
Overload List