ICoreWebView2EnvironmentOptions2.put_ExclusiveUserDataFolderAccess

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).

interface ICoreWebView2EnvironmentOptions2
@" propput"
HRESULT
put_ExclusiveUserDataFolderAccess
(
in BOOL value
)

Meta