Click or drag to resize

BrowserClientSetPermissionAsync Method

Version 118.6.80
Set permission settings for given origin.

Namespace:  CefSharp.DevTools.Browser
Assembly:  CefSharp.Core (in CefSharp.Core.dll) Version: 118.6.80.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