Partager via


CoreWebView2.PermissionRequested Event

Definition

PermissionRequested is raised when content in a WebView requests permission to access some privileged resources.

public event EventHandler<Microsoft.Web.WebView2.Core.CoreWebView2PermissionRequestedEventArgs> PermissionRequested;
member this.PermissionRequested : EventHandler<Microsoft.Web.WebView2.Core.CoreWebView2PermissionRequestedEventArgs> 
Public Custom Event PermissionRequested As EventHandler(Of CoreWebView2PermissionRequestedEventArgs) 

Event Type

Remarks

If a deferral is not taken on the event args, the subsequent scripts are blocked until the event handler returns. If a deferral is taken, the scripts are blocked until the deferral is completed.

Applies to