NetworkClientDeleteCookiesAsync Method |
Version 130.1.90
Deletes browser cookies with matching name and url or domain/path/partitionKey pair.
Namespace: CefSharp.DevTools.NetworkAssembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax public Task<DevToolsMethodResponse> DeleteCookiesAsync(
string name,
string url = null,
string domain = null,
string path = null,
CookiePartitionKey partitionKey = null
)
public:
Task<DevToolsMethodResponse^>^ DeleteCookiesAsync(
String^ name,
String^ url = nullptr,
String^ domain = nullptr,
String^ path = nullptr,
CookiePartitionKey^ partitionKey = nullptr
)
Parameters
- name String
- Name of the cookies to remove.
- url String (Optional)
- If specified, deletes all the cookies with the given name where domain and path matchprovided URL.
- domain String (Optional)
- If specified, deletes only cookies with the exact domain.
- path String (Optional)
- If specified, deletes only cookies with the exact path.
- partitionKey CookiePartitionKey (Optional)
- If specified, deletes only cookies with the the given name and partitionKey whereall partition key attributes match the cookie partition key attribute.
Return Value
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also