ApplicationData Class

Provides access to the application data store.

Syntax

public ref class ApplicationData sealed  

Remarks

ApplicationData provides persistent local storage on the internal hard drive for app data on a per-title basis. Use this class to preserve app-specific data between sessions.

To use this API, call ApplicationData::Current to get the current instance of your app’s local storage. Then get the path from the ApplicationData::LocalFolder. You can then supply this path to the standard Windows file management functions (such as CreateFile2 and WriteFile).

Note that use of this class requires a declaration in the appx manifest. Otherwise, a Platform::COMException will be thrown.

For more information on using persistant local storage, see Local Storage.

Requirements

Namespace: Windows.Storage

Metadata: windows.winmd

See also

Reference

ApplicationData Members

Windows.Storage Namespace