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.

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.

Uri

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

Methods

GetDeferral()

Gets a CoreWebView2Deferral object.

Applies to