Vcl.Edge.TCustomEdgeBrowser.UserDataFolder
Delphi
property UserDataFolder: string read FUserDataFolder write FUserDataFolder;
C++
__property System::UnicodeString UserDataFolder = {read=FUserDataFolder, write=FUserDataFolder};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Vcl.Edge.pas Vcl.Edge.hpp |
Vcl.Edge | TCustomEdgeBrowser |
Description
Specifies the location of the user data folder, where Edge/WebView2 stores e.g. cookies, permissions and cached resources.
This property value can contain environment variables surrounded by % signs, e.g. %LOCALAPPDATA%\MyEdgeCacheFolder
If it does not, set this as default {your_exe_name}.WebView2 in the local app data folder. For example, the default user data folder for a TEdgeBrowser in Project1.exe would be %LOCALAPPDATA%\Project1.exe.WebView2.
Setting this property affects the creation of the next underlying WebView2 control. If this component has already created a WebView2 control then setting this property will have no effect unless the WebView2 control gets recreated (e.g. by ReinitializeWebView or ReinitializeWebViewWithNewBrowser).