The OpenD Programming Language

ICoreWebView2EnvironmentOptions2

Undocumented in source.
version(Windows && inline_webview2_bindings && all)
interface ICoreWebView2EnvironmentOptions2 : IUnknown {
static const
GUID iid;
}

Members

Functions

get_ExclusiveUserDataFolderAccess
HRESULT get_ExclusiveUserDataFolderAccess(BOOL* value)

Whether other processes can create WebView2 from WebView2Environment created with the same user data folder and therefore sharing the same WebView browser process instance. Default is FALSE.

put_ExclusiveUserDataFolderAccess
HRESULT put_ExclusiveUserDataFolderAccess(BOOL value)

Sets the ExclusiveUserDataFolderAccess property. The ExclusiveUserDataFolderAccess property specifies that the WebView environment obtains exclusive access to the user data folder. If the user data folder is already being used by another WebView environment with a different value for ExclusiveUserDataFolderAccess property, the creation of a WebView2Controller using the environment object will fail with HRESULT_FROM_WIN32(ERROR_INVALID_STATE). When set as TRUE, no other WebView can be created from other processes using WebView2Environment objects with the same UserDataFolder. This prevents other processes from creating WebViews which share the same browser process instance, since sharing is performed among WebViews that have the same UserDataFolder. When another process tries to create a WebView2Controller from an WebView2Environment object created with the same user data folder, it will fail with HRESULT_FROM_WIN32(ERROR_INVALID_STATE).

Meta