ICookieManagerDeleteCookies Method |
Version 75.1.140
Deletes all cookies that matches all the provided parameters. If both
url and
name are empty, all cookies will be deleted.
Cookies can alternately be deleted using the Visit*Cookies() methods.
This method will be executed on the CEF UI thread in an async fashion, to be notified upon completion implement
IDeleteCookiesCallback
and pass in as
callback
Namespace:
CefSharp
Assembly:
CefSharp (in CefSharp.dll) Version: 75.1.140.0 (75.1.140.0)
Syntax bool DeleteCookies(
string url = null,
string name = null,
IDeleteCookiesCallback callback = null
)
bool DeleteCookies(
String^ url = nullptr,
String^ name = nullptr,
IDeleteCookiesCallback^ callback = nullptr
)
Parameters
- url (Optional)
- Type: SystemString
The cookie URL. If an empty string is provided, any URL will be matched. - name (Optional)
- Type: SystemString
The name of the cookie. If an empty string is provided, any URL will be matched. - callback (Optional)
- Type: CefSharpIDeleteCookiesCallback
If non-NULL it will be executed asnychronously on the CEF UI thread after the cookies have been deleted.
Return Value
Type:
BooleanReturns false if a non-empty invalid URL is specified, or if cookies cannot be accessed; otherwise, true.
See Also