Interface ICookieJar
Defines an interface allowing the user to manipulate cookies on the current page.
public interface ICookieJar
Properties
AllCookies
Gets all cookies defined for the current page.
ReadOnlyCollection<Cookie> AllCookies { get; }
Property Value
Methods
AddCookie(Cookie)
Adds a cookie to the current page.
void AddCookie(Cookie cookie)
Parameters
DeleteAllCookies()
Deletes all cookies from the page.
void DeleteAllCookies()
DeleteCookie(Cookie)
Deletes the specified cookie from the page.
void DeleteCookie(Cookie cookie)
Parameters
DeleteCookieNamed(string)
Deletes the cookie with the specified name from the page.
void DeleteCookieNamed(string name)
Parameters
name
stringThe name of the cookie to be deleted.
GetCookieNamed(string)
Gets a cookie with the specified name.
Cookie GetCookieNamed(string name)
Parameters
name
stringThe name of the cookie to retrieve.