interface IWebView2Environment2

Note

This reference is no longer being maintained. For the latest API reference, see WebView2 API Reference.

interface IWebView2Environment2
  : public IWebView2Environment

Additional functionality implemented by the Environment object.

Summary

Members Descriptions
get_BrowserVersionInfo The browser version info of the current IWebView2Environment, including channel name if it is not the stable channel.

See the IWebView2Environment interface for more details. You can QueryInterface for this interface from the object that implements IWebView2Environment.

Members

get_BrowserVersionInfo

The browser version info of the current IWebView2Environment, including channel name if it is not the stable channel.

public HRESULT get_BrowserVersionInfo(LPWSTR * versionInfo)

This matches the format of the GetWebView2BrowserVersionInfo API. Channel names are 'beta', 'dev', and 'canary'.

        wil::unique_cotaskmem_string version_info;
        m_webViewEnvironment->get_BrowserVersionInfo(&version_info);
        MessageBox(
            m_mainWindow, version_info.get(), L"Browser Version Info After WebView Creation",
            MB_OK);