BrowserClientSetPermissionAsync Method |
Version 90.6.50
Set permission settings for given origin.
Namespace:
CefSharp.DevTools.Browser
Assembly:
CefSharp (in CefSharp.dll) Version: 90.6.50.0 (90.6.50.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