BrowserClientGrantPermissionsAsync Method |
Version 130.1.90
Grant specific permissions to the given origin and reject all others.
Namespace: CefSharp.DevTools.BrowserAssembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax public 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 PermissionType
- permissions
- origin String (Optional)
- Origin the permission applies to, all origins if not specified.
- browserContextId String (Optional)
- BrowserContext to override permissions. When omitted, default browser context is used.
Return Value
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also