Vcl.Edge.TEdgeBrowser.UserDataFolder
Delphi
property UserDataFolder;
C++
__property UserDataFolder = {default=0};
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| property | published | Vcl.Edge.pas Vcl.Edge.hpp |
Vcl.Edge | TEdgeBrowser |
Description
Specifies the location of the user data folder, where Edge/WebView2 stores e.g. cookies, permissions and cached resources.
Vcl.Edge.TEdgeBrowser.UserDataFolder inherits from Vcl.Edge.TCustomEdgeBrowser.UserDataFolder. All content below this line refers to Vcl.Edge.TCustomEdgeBrowser.UserDataFolder.
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).