CoreWebView2PermissionRequestedEventArgs.GetDeferral Method
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.
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.