SHDocVw.TWebBrowser.EdgeUserDataFolder
Delphi
property EdgeUserDataFolder: string read FEdgeUserDataFolder write SetEdgeUserDataFolder;
C++
__property System::UnicodeString EdgeUserDataFolder = {read=FEdgeUserDataFolder, write=SetEdgeUserDataFolder};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | SHDocVw.pas SHDocVw.hpp |
SHDocVw | TWebBrowser |
Description
If SelectedEngine is EdgeOnly, or is EdgeIfAvailable and Edge is available, then the EdgeUserDataFolder property tells Edge (or, more accurately, the WebView2 runtime) in which folder to store user data (e.g. cookies, permissions and cached resources).
This property defaults to a local app data folder (i.e. the folder in which the path is stored in the LOCALAPPDATA environment variable) called <executable_file_name>.WebView2. The property value can include embedded environment variables if needed (e.g. %LOCALAPPDATA%\MyEdgeCacheFolder).
Note: Microsoft states "The app is responsible to clean up the associated user data folder when it is done."