interface ICoreWebView2ExperimentalNewWindowRequestedEventArgs
Note
This reference is no longer being maintained. For the latest API reference, see WebView2 API Reference.
Note
This an experimental API that is shipped with our prerelease SDK. See WebView2 release notes.
interface ICoreWebView2ExperimentalNewWindowRequestedEventArgs
: public IUnknown
This is a continuation of the ICoreWebView2NewWindowRequestedEventArgs interface.
Summary
Members | Descriptions |
---|---|
get_Name | Gets the name of the new window. |
Applies to
Product | Introduced |
---|---|
WebView2 Win32 | N/A |
WebView2 Win32 Prerelease | 0.9.538 |
Members
get_Name
Gets the name of the new window.
public HRESULT get_Name(LPWSTR * value)
This window can be created via window.open(url, windowName)
, where the windowName parameter corresponds to Name
property. If no windowName is passed to window.open
, then the Name
property will be set to an empty string. Additionally, if window is opened through other means, such as <a target="windowName">...</a>
or <iframe name="windowName">...</iframe>
, then the Name
property will be set accordingly. In the case of target=_blank, the Name
property will be an empty string. Opening a window via ctrl+clicking a link would result in the Name
property being set to an empty string.
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應