Click or drag to resize

BrowserClientGrantPermissionsAsync Method

Version 99.2.120
Grant specific permissions to the given origin and reject all others.

Namespace:  CefSharp.DevTools.Browser
Assembly:  CefSharp (in CefSharp.dll) Version: 99.2.120.0 (99.2.120.0)
Syntax
public Task<DevToolsMethodResponse> GrantPermissionsAsync(
	PermissionType[] permissions,
	string origin = null,
	string browserContextId = null
)

Parameters

permissions
Type: CefSharp.DevTools.BrowserPermissionType
permissions
origin (Optional)
Type: SystemString
Origin the permission applies to, all origins if not specified.
browserContextId (Optional)
Type: SystemString
BrowserContext to override permissions. When omitted, default browser context is used.

Return Value

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