WebViewDeferredPermissionRequest WebViewDeferredPermissionRequest WebViewDeferredPermissionRequest WebViewDeferredPermissionRequest Class

Definition

Represents a deferred request for permissions in a WebView.

public : sealed class WebViewDeferredPermissionRequest : IWebViewDeferredPermissionRequestpublic sealed class WebViewDeferredPermissionRequest : IWebViewDeferredPermissionRequestPublic NotInheritable Class WebViewDeferredPermissionRequest Implements IWebViewDeferredPermissionRequest// This API is not available in Javascript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

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.

Properties

Id Id Id Id

Gets the identifier for the permission request.

public : unsigned int Id { get; }public uint Id { get; }Public ReadOnly Property Id As uint// This API is not available in Javascript.
Value
unsigned int uint uint uint

The identifier for the permission request.

Remarks

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.

PermissionType PermissionType PermissionType PermissionType

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

public : WebViewPermissionType PermissionType { get; }public WebViewPermissionType PermissionType { get; }Public ReadOnly Property PermissionType As WebViewPermissionType// This API is not available in Javascript.
Value
WebViewPermissionType WebViewPermissionType WebViewPermissionType WebViewPermissionType

An enumeration value that indicates the type of permission requested.

Uri Uri Uri Uri

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

public : Uri Uri { get; }public Uri Uri { get; }Public ReadOnly Property Uri As Uri// This API is not available in Javascript.
Value
Uri Uri Uri Uri

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

Methods

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

Grants the requested permission.

public : void Allow()public void Allow()Public Function Allow() As void// This API is not available in Javascript.

Remarks

When you allow the requested permission, subsequent calls to Allow or Deny the permission request result in an error.

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

Denies the requested permission.

public : void Deny()public void Deny()Public Function Deny() As void// This API is not available in Javascript.

Remarks

When you deny the requested permission, subsequent calls to Allow or Deny the permission request result in an error.