CoreWebView2PermissionRequestedEventArgs Class

Event args for the CoreWebView2.PermissionRequested event.

Summary

Members Description
IsUserInitiated true when the permission request was initiated through a user gesture such as clicking an anchor tag with target.
PermissionKind Gets the kind of the permission that is requested.
State Gets or sets the status of a permission request. For example, whether the request is granted.
Uri Gets the origin of the web content that requests the permission.
GetDeferral Gets a Deferral object.

Properties

IsUserInitiated

readonly bool IsUserInitiated

true when the permission request was initiated through a user gesture such as clicking an anchor tag with target. Being initiated through a user gesture does not mean that user intended to access the associated resource.

PermissionKind

readonly CoreWebView2PermissionKind PermissionKind

Gets the kind of the permission that is requested.

State

CoreWebView2PermissionState State

Gets or sets the status of a permission request. For example, whether the request is granted. The default value is CoreWebView2PermissionState.Default.

Uri

readonly string Uri

Gets the origin of the web content that requests the permission.

Methods

GetDeferral

Deferral GetDeferral()

Gets a Deferral object. Use the deferral object to make the permission decision at a later time.

Referenced by