Click or drag to resize

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
)

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: TaskDevToolsMethodResponse
returns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also