interface ICoreWebView2EnvironmentOptions6

interface ICoreWebView2EnvironmentOptions6
  : public IUnknown

Additional options used to create WebView2 Environment to manage browser extensions.

Summary

Members Descriptions
get_AreBrowserExtensionsEnabled Gets the AreBrowserExtensionsEnabled property.
put_AreBrowserExtensionsEnabled When AreBrowserExtensionsEnabled is set to TRUE, new extensions can be added to user profile and used.

Applies to

Product Introduced
WebView2 Win32 1.0.2210.55
WebView2 Win32 Prerelease 1.0.2194

Members

get_AreBrowserExtensionsEnabled

Gets the AreBrowserExtensionsEnabled property.

public HRESULT get_AreBrowserExtensionsEnabled(BOOL * value)

put_AreBrowserExtensionsEnabled

When AreBrowserExtensionsEnabled is set to TRUE, new extensions can be added to user profile and used.

public HRESULT put_AreBrowserExtensionsEnabled(BOOL value)

AreBrowserExtensionsEnabled is default to be FALSE, in this case, new extensions can't be installed, and already installed extension won't be available to use in user profile. If connecting to an already running environment with a different value for AreBrowserExtensionsEnabled property, it will fail with HRESULT_FROM_WIN32(ERROR_INVALID_STATE). See ICoreWebView2BrowserExtension for Extensions API details.