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

Type: ICookieItem

The cookie item.

Removes the cookie item from the container.
Syntax
void Remove( 
   ICookieItem item
)

Parameters

item

Type: ICookieItem

The cookie item.

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 cookie from container
    project.Profile.CookieContainer.Remove(items.FirstOrDefault());
}
Requirements

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

See Also

Reference

ICookieContainer Interface
ICookieContainer Members
Overload List