interface ICoreWebView2WebMessageReceivedEventArgs2
Note
This reference is no longer being maintained. For the latest API reference, see WebView2 API Reference.
interface ICoreWebView2WebMessageReceivedEventArgs2
: public ICoreWebView2WebMessageReceivedEventArgs
Extension of WebMessageReceivedEventArgs to provide access to additional WebMessage objects.
Summary
Members | Descriptions |
---|---|
get_AdditionalObjects | Additional received WebMessage objects. |
Applies to
Product | Introduced |
---|---|
WebView2 Win32 | N/A |
WebView2 Win32 Prerelease | 1.0.1777 |
Members
get_AdditionalObjects
Additional received WebMessage objects.
public HRESULT get_AdditionalObjects(ICoreWebView2ObjectCollectionView ** value)
To pass additionalObjects
via WebMessage to the app, use the chrome.webview.postMessageWithAdditionalObjects
content API. Any DOM object type that can be natively representable that has been passed in to additionalObjects
parameter will be accessible here. Currently a WebMessage object can be the ICoreWebView2File type. Entries in the collection can be nullptr
if null
or undefined
was passed.
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應