Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
interface ICoreWebView2Interop
: public IUnknown
Interop interface for the CoreWebView2 WinRT object to allow WinRT end developers to be able to use COM interfaces as parameters for some methods.
Summary
| Members | Descriptions |
|---|---|
| AddHostObjectToScript | Add the provided host object to script running in the WebView with the specified name. |
This interface is implemented by the Microsoft.Web.WebView2.Core.CoreWebView2 runtime class.
Applies to
| Product | Introduced |
|---|---|
| WebView2 WinRT | 1.0.992.28 |
| WebView2 WinRT Prerelease | 1.0.955 |
Members
AddHostObjectToScript
Add the provided host object to script running in the WebView with the specified name.
public HRESULT AddHostObjectToScript(LPCWSTR name, VARIANT * object)
See the documentation for ICoreWebView2::AddHostObjectToScript for more information.