BrowserClient.GrantPermissionsAsync Method |
Version 109.1.110
Grant specific permissions to the given origin and reject all others.
Namespace:
CefSharp.DevTools.Browser
Assembly:
CefSharp (in CefSharp.dll) Version: 109.1.110.0 (109.1.110.0)
Syntaxpublic Task<DevToolsMethodResponse> GrantPermissionsAsync(
PermissionType[] permissions,
string origin = null,
string browserContextId = null
)
public:
Task<DevToolsMethodResponse^>^ GrantPermissionsAsync(
array<PermissionType>^ permissions,
String^ origin = nullptr,
String^ browserContextId = nullptr
)
Parameters
- permissions
- Type:CefSharp.DevTools.Browser.PermissionType[]
permissions - origin (Optional)
- Type: System.String
Origin the permission applies to, all origins if not specified. - browserContextId (Optional)
- Type: System.String
BrowserContext to override permissions. When omitted, default browser context is used.
Return Value
Type:
Task<DevToolsMethodResponse>returns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also