CoreWebView2PermissionRequestedEventArgs Class

Definition

Event args for the PermissionRequested event.

public class CoreWebView2PermissionRequestedEventArgs
public class CoreWebView2PermissionRequestedEventArgs : EventArgs
type CoreWebView2PermissionRequestedEventArgs = class
type CoreWebView2PermissionRequestedEventArgs = class
    inherit EventArgs
Public Class CoreWebView2PermissionRequestedEventArgs
Public Class CoreWebView2PermissionRequestedEventArgs
Inherits EventArgs
Inheritance
CoreWebView2PermissionRequestedEventArgs
Inheritance
CoreWebView2PermissionRequestedEventArgs

Properties

Handled

The host may set this flag to TRUE to prevent the PermissionRequested event from firing on the CoreWebView2 as well. By default, both the PermissionRequested on the CoreWebView2Frame and CoreWebView2 will be fired.

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.

SavesInProfile

Set the SavesInProfile property to FALSE to not persist the state beyond the current request, and to continue to receive PermissionRequested events for this origin and permission kind.

State

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

Uri

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

Methods

GetDeferral()

Gets a Deferral object.

Applies to