ApplicationData.RoamingFolder Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the root folder in the roaming app data store.
public:
property StorageFolder ^ RoamingFolder { StorageFolder ^ get(); };
StorageFolder RoamingFolder();
public StorageFolder RoamingFolder { get; }
var storageFolder = applicationData.roamingFolder;
Public ReadOnly Property RoamingFolder As StorageFolder
The file system folder that contains the files.
Warning
Roaming data and settings is no longer supported as of Windows 11. The recommended replacement is Azure App Service. Azure App Service is widely supported, well documented, reliable, and supports cross-platform/cross-ecosystem scenarios such as iOS, Android and web. Settings stored here no longer roam (as of Windows 11), but the settings store is still available.
This documentation applies to Windows 10 versions 1909 and lower.
The sync engine has restrictions on the file name conventions that you must follow to ensure the items in the roaming folder can roam. Be sure that your file and folder names do not contain leading whitespace. The sync engine may limit the total size of settings and files that can roam.
You can access files in the roaming app data store using the "ms-appdata:///roaming/" protocol. For example:
<img src="ms-appdata:///roaming/myFile.png" alt="" />
Product | Versions |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |