WebViewControlNewWindowRequestedEventArgs 类

定义

NewWindowRequested 事件提供数据。

public ref class WebViewControlNewWindowRequestedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
class WebViewControlNewWindowRequestedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
public sealed class WebViewControlNewWindowRequestedEventArgs
Public NotInheritable Class WebViewControlNewWindowRequestedEventArgs
继承
Object Platform::Object IInspectable WebViewControlNewWindowRequestedEventArgs
属性

Windows 要求

设备系列
Windows 10, version 1803 (在 10.0.17134.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v6.0 中引入)

注解

版本历史记录

Windows 版本 SDK 版本 已添加值
1809 17763 GetDeferral
1809 17763 NewWindow

属性

Handled

获取或设置一个值,该值将路由事件标记为已处理。

NewWindow

提供一个新的 WebViewControl 作为从请求WebViewControl中的脚本调用的目标window.open。 目标 Web 视图中的内容始终被视为跨源到开放 Web 视图中的内容,反之亦然,并受跨源限制。 WebViewControl属性中NewWindow提供的 必须是新的,在与 opener Webview 相同的进程中运行,并且无法导航。 NewWindow设置 属性优先于 Handled 属性。 如果 NewWindow 设置了 ,则使用提供的 WebViewControl 。 如果未 NewWindow 设置 ,则 Handled 检查 以确定新窗口请求的行为。

Referrer

获取发起导航的内容的统一资源标识符 (URI) 。

Uri

获取 IWebViewControl 尝试导航到的内容) 统一资源标识符 (URI。

方法

GetDeferral()

获取延迟。

适用于