BrowserClientSetPermissionAsync Method |
Version 130.1.90
Set permission settings for given origin.
Namespace: CefSharp.DevTools.BrowserAssembly: 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
)
public:
Task<DevToolsMethodResponse^>^ SetPermissionAsync(
PermissionDescriptor^ permission,
PermissionSetting setting,
String^ origin = nullptr,
String^ browserContextId = nullptr
)
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
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also