WebViewControlPermissionRequest Class
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.
Represents a request for permissions in a WebView.
public ref class WebViewControlPermissionRequest sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
class WebViewControlPermissionRequest final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
public sealed class WebViewControlPermissionRequest
Public NotInheritable Class WebViewControlPermissionRequest
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10, version 1803 (introduced in 10.0.17134.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v6.0)
|
Remarks
For more info, see the IWebViewControl.PermissionRequested event.
When you handle a permission request in an IWebViewControl, you get a WebViewControlPermissionRequest object as the value of the WebViewPermissionRequestedEventArgs.PermissionRequest property. You can call Allow to grant the request, Deny to deny the request, or Defer to defer the request until a later time. For example, you might defer the request if you need to prompt the user for consent.
Properties
Id |
Gets the identifier for the permission request. |
PermissionType |
Gets a value that indicates the type of permission that's requested. |
State |
Gets the current state of the permission request. |
Uri |
Gets the Uniform Resource Identifier (URI) of the content where the permission request originated. |
Methods
Allow() |
Grants the requested permission. |
Defer() |
Defers the permission request to be allowed or denied at a later time. |
Deny() |
Denies the requested permission. |