Compartir a través de


interface ICoreWebView2EnvironmentOptions6

Note

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

interface ICoreWebView2EnvironmentOptions6
  : public IUnknown

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

Summary

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

Applies to

Product Introduced
WebView2 Win32 N/A
WebView2 Win32 Prerelease 1.0.2194

Members

get_AreBrowserExtensionsEnabled

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

public HRESULT get_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.

put_AreBrowserExtensionsEnabled

Sets the AreBrowserExtensionsEnabled property.

public HRESULT put_AreBrowserExtensionsEnabled(BOOL value)