App
- App Package Folder (Read Only)
- App Data Folders: Local, Roaming*, Temp (Read/Write)
- Publishers Shared Folder (Read/Write)
- Removable Storage (SD Card, Read/Write)
- Credential Locker (Read/Write, Secured)
*The Roaming Folder is synchronised (100 KByte) of all devices, where the App is installed.
Windows Storage – API via URIs
Installation Folder
„ms-appx:///“
App Data Folder
- „ms-appdata:///local/“
- „ms-appdata:///roaming/“
- „ms-appdata:///temp/“
Example
var file = await Windows.StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appdata:///local/AppConfig.xml"));
Windows Storage – Storage Folder
Installation Folder
Windows.ApplicationModel.Package.Current.InstalledLocation
App Data Folder
- Windows.Storage.ApplicationData.Current.LocalFolder
- Windows.Storage.ApplicationData.Current.RoamingFolder
- Windows.Storage.ApplicationData.Current.TempFolder
Example
var localFolder = Windows.Storage.ApplicationData.Current.LocalFolder; Windows.Storage.StorageFile storageFile = await localFolder.GetFileAsync("test.log");
File Open / Save Picker APIs
- Filesystem
- OneDrive
Known Folders
- Pictures**
- Videos**
- Music**
**Direct access needs manifest capabilities
Cloud
- Azure (Background Transfer)