ZennoLab Assemblies Documentation
Add(ICookieContainer) Method
Example 
ZennoLab.CommandCenter Namespace > CookieContainer Class > Add Method : Add(ICookieContainer) Method

Type: ICookieContainer

The cookie container.

Adds the contents of an another container to the container.
Syntax
public void Add( 
   ICookieContainer container
)

Parameters

container

Type: ICookieContainer

The cookie container.

Example
The following code example demonstrates the Add method.
// create new cookie container
var container = new CookieContainer();
// use new cookie container for http request
ZennoPoster.HTTP.Request(InterfacesLibrary.Enums.Http.HttpMethod.GET, "https://zennolab.com", cookieContainer: container);
// add the contents of the new container to profile's container
project.Profile.CookieContainer.Add(container);
Requirements

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

See Also

Reference

CookieContainer Class
CookieContainer Members
Overload List