共用方式為


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 。 目標 Webview 中的內容一律會被視為跨原始來源至 opener webview 中的內容,反之亦然,並受限於跨原始來源限制。 屬性 WebViewControlNewWindow 提供的 必須是新的 ,在與開啟程式 Web 檢視相同的進程中執行,而且無法巡覽。 NewWindow設定屬性的優先順序高於 Handled 屬性。 如果 NewWindow 已設定,則會使用提供的 WebViewControl 。 如果未 NewWindow 設定 ,則會 Handled 檢查以判斷新視窗要求的行為。

Referrer

取得起始導覽之內容的統一資源識別項 (URI) 。

Uri

取得 IWebViewControl 嘗試巡覽至之內容的統一資源識別項 (URI) 。

方法

GetDeferral()

取得延遲。

適用於