WebViewDeferredPermissionRequest WebViewDeferredPermissionRequest WebViewDeferredPermissionRequest WebViewDeferredPermissionRequest Class


Represents a deferred request for permissions in a WebView.

public : sealed class WebViewDeferredPermissionRequest : IWebViewDeferredPermissionRequest
struct winrt::Windows::UI::Xaml::Controls::WebViewDeferredPermissionRequest : IWebViewDeferredPermissionRequest
public sealed class WebViewDeferredPermissionRequest : IWebViewDeferredPermissionRequest
Public NotInheritable Class WebViewDeferredPermissionRequest Implements IWebViewDeferredPermissionRequest
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


For more info, see the WebView.PermissionRequested event.

When a WebViewPermissionRequest is deferred, a WebViewDeferredPermissionRequest is created with the same Id and added to the DeferredPermissionRequests collection. When you are ready to act on the request, call the DeferredPermissionRequestById method and pass the Id of the deferred request. After you retrieve the request, you can call the Allow method to grant the request, or call the Deny method to deny the request.


Id Id Id Id

Gets the identifier for the permission request.

PermissionType PermissionType PermissionType PermissionType

Gets a value that indicates the type of permission that's requested.

Uri Uri Uri Uri

Gets the Uniform Resource Identifier (URI) of the content where the permission request originated.


Allow() Allow() Allow() Allow()

Grants the requested permission.

Deny() Deny() Deny() Deny()

Denies the requested permission.