C# Class Microsoft.Toolkit.Win32.UI.Controls.Interop.WinRT.WebViewControlPermissionRequest

Represents a request for permissions in an IWebView. This class cannot be inherited.

Copy from Windows.Web.UI.WebViewControlPermissionRequest to avoid requirement to link Windows.winmd.

For more info, see the IWebView.PermissionRequested event.

显示文件 Open project: unoplatform/Uno.WindowsCommunityToolkit

Public Methods

Method Description
Allow ( ) : void

Grants the requested permission.

Defer ( ) : void

Defers the permission request to be allowed or denied at a later time.

Deny ( ) : void

Denies the requested permission.

ToWebViewControlPermissionRequest ( Windows.Web.UI.WebViewControlPermissionRequest args ) : WebViewControlPermissionRequest

Creates a WebViewControlPermissionRequest from Windows.Web.UI.WebViewControlPermissionRequest.

Private Methods

Method Description
WebViewControlPermissionRequest ( Windows.Web.UI.WebViewControlPermissionRequest permissionRequest ) : System

Method Details

Allow() public method

Grants the requested permission.
public Allow ( ) : void
return void

Defer() public method

Defers the permission request to be allowed or denied at a later time.
public Defer ( ) : void
return void

Deny() public method

Denies the requested permission.
public Deny ( ) : void
return void

ToWebViewControlPermissionRequest() public static method

Creates a WebViewControlPermissionRequest from Windows.Web.UI.WebViewControlPermissionRequest.
public static ToWebViewControlPermissionRequest ( Windows.Web.UI.WebViewControlPermissionRequest args ) : WebViewControlPermissionRequest
args Windows.Web.UI.WebViewControlPermissionRequest The .
return WebViewControlPermissionRequest