Partager via


CoreWebView2PermissionRequestedEventArgs.GetDeferral Method

Definition

Gets a Deferral object.

public Microsoft.Web.WebView2.Core.CoreWebView2Deferral GetDeferral ();
member this.GetDeferral : unit -> Microsoft.Web.WebView2.Core.CoreWebView2Deferral
Public Function GetDeferral () As CoreWebView2Deferral

Returns

Remarks

Use the deferral object to make the permission decision at a later time. The deferral only applies to the current request, and does not prevent the PermissionRequested event from getting raised for new requests. However, for some permission kinds the WebView will avoid creating a new request if there is a pending request of the same kind.

Applies to