Compartir a través de


interface ICoreWebView2WebMessageReceivedEventArgs2

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 1.0.1774.30
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.