BrowserClientSetPermissionAsync Method |
Version 96.0.142
Set permission settings for given origin.
Namespace:
CefSharp.DevTools.Browser
Assembly:
CefSharp (in CefSharp.dll) Version: 96.0.142.0 (96.0.142.0)
Syntax public Task<DevToolsMethodResponse> SetPermissionAsync(
PermissionDescriptor permission,
PermissionSetting setting,
string origin = null,
string browserContextId = null
)
public:
Task<DevToolsMethodResponse^>^ SetPermissionAsync(
PermissionDescriptor^ permission,
PermissionSetting setting,
String^ origin = nullptr,
String^ browserContextId = nullptr
)
Parameters
- permission
- Type: CefSharp.DevTools.BrowserPermissionDescriptor
Descriptor of permission to override. - setting
- Type: CefSharp.DevTools.BrowserPermissionSetting
Setting of the permission. - origin (Optional)
- Type: SystemString
Origin the permission applies to, all origins if not specified. - browserContextId (Optional)
- Type: SystemString
Context to override. When omitted, default browser context is used.
Return Value
Type:
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also