Click or drag to resize

IPermissionsRequestPermissionHandler Property

Gets or sets a handler that is used when a web page requests a permission, for example to enable geolocation. The permission type and the information about the web page can be obtained from the passed request object.

Namespace:  DotNetBrowser.Permissions
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.23.1
Syntax
C#
IHandler<RequestPermissionParameters, RequestPermissionResponse> RequestPermissionHandler { get; set; }

Property Value

Type: IHandlerRequestPermissionParameters, RequestPermissionResponse
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe IPermissions has already been disposed.
Remarks

Use the Grant to grant the requested permission.

Use the Deny to deny the requested permission.

If an exception occurs inside the handler implementation, the default behavior will be applied - the method Deny will be used.

See Also