ZennoLab Assemblies Documentation
Remove(IEnumerable<ICookieItem>) Method
Example 
ZennoLab.InterfacesLibrary.ProjectModel Namespace > ICookieContainer Interface > Remove Method : Remove(IEnumerable<ICookieItem>) Method

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

The cookie items collection.

Removes the cookie items collection from the container.
Syntax

Parameters

items

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

The cookie items collection.

Example
The following code example demonstrates the Remove method.
// http request with cookie container
ZennoPoster.HTTP.Request(InterfacesLibrary.Enums.Http.HttpMethod.GET, "https://zennolab.com", cookieContainer: project.Profile.CookieContainer);
// get avaliable domains for container
var domains = project.Profile.CookieContainer.Domains;
if (domains.Count() > 0)
{
    var items = project.Profile.CookieContainer.Get(domains.First());
    // remove some cookies from container
    project.Profile.CookieContainer.Remove(items);
}
Requirements

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

See Also

Reference

ICookieContainer Interface
ICookieContainer Members
Overload List