共用方式為


Managing app data (XAML)

[ This article is for Windows 8.x and Windows Phone 8.x developers writing Windows Runtime apps. If you’re developing for Windows 10, see the latest documentation ]

Learn how to store and retrieve app data.

In this section

Topic Description

Quickstart: Local app data

Learn how to store and retrieve settings and files from the local app data store.

Quickstart: Roaming app data

Learn how to store and retrieve settings and files from the roaming app data store.

Quickstart: Temporary app data

Learn how to store and retrieve files from the temporary app data store.

How to index app local data

You can index the local stored data for your app via the Windows Search Service (WSS).

How to perform rich queries on app local data

Learn how an app can use the file APIs in the Windows.Storage namespace to perform rich queries against files in the app’s local stored data.

How to roam data between a Windows Store app and a Windows Phone Store app

If you publish two versions of your app - a version for Windows Store and a version for Windows Phone Store - you can roam app data across the apps running on the two different types of devices. To roam data across different versions of your app on different types of devices, assign the same Package Family Name (PFN) to each version of the app.

 

Accessing data and files

Accessing app data with the Windows Runtime

ApplicationData