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