Click or drag to resize

BrowserClientSetPermissionAsync Method

Version 130.1.90
Set permission settings for given origin.

Namespace: CefSharp.DevTools.Browser
Assembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax
public Task<DevToolsMethodResponse> SetPermissionAsync(
	PermissionDescriptor permission,
	PermissionSetting setting,
	string origin = null,
	string browserContextId = null
)

Parameters

permission  PermissionDescriptor
Descriptor of permission to override.
setting  PermissionSetting
Setting of the permission.
origin  String  (Optional)
Origin the permission applies to, all origins if not specified.
browserContextId  String  (Optional)
Context to override. When omitted, default browser context is used.

Return Value

TaskDevToolsMethodResponse
returns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also