CoreWebView2.PermissionRequested Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.