Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.5 KB

applicationdata_localfolder.md

File metadata and controls

35 lines (23 loc) · 1.5 KB
-api-id -api-type
P:Windows.Storage.ApplicationData.LocalFolder
winrt property

Windows.Storage.ApplicationData.LocalFolder

-description

Gets the root folder in the local app data store. This folder is backed up to the cloud.

-property-value

The file system folder that contains the files.

-remarks

You can access files in the local app data store using the "ms-appdata:///local/" protocol. For example:

<img src="ms-appdata:///local/myFile.png" alt="" />

To access files in the app package, use Windows.ApplicationModel.Package.Current.InstalledLocation.

To request that Windows index your app data for search, create a folder named "Indexed" under this folder and store the files that you want indexed there. Windows indexes the file content and metadata (properties) in this "Indexed" folder and all its subfolders.

Note

Content in the indexed folder will not be surfaced in a system search, but can be searched by the app.

If the device that runs this app supports app data backup, any content placed on LocalFolder will be eligible to be backed up to the cloud. Therefore if you want to persist data and keep it local to the device you should consider using LocalCacheFolder.

-examples

-see-also

Store and retrieve settings and other app data