AppDataPaths AppDataPaths AppDataPaths AppDataPaths AppDataPaths Class


AppDataPaths returns paths to commonly used application folders based on the KNOWNFOLDERID naming pattern.

public : sealed class AppDataPaths
struct winrt::Windows::Storage::AppDataPaths
public sealed class AppDataPaths
Public NotInheritable Class AppDataPaths
// This class does not provide a public constructor.

Windows 10 requirements

Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)


This class returns paths that are always isolated per the caller’s context. For example, this will match expectations of cross-platform app developers who might have used “private” versions of documents in the past. There is no legacy COM interop interface for this type.

Requesting folder locations from an app that doesn’t have a package identity will fail (for example, GetDefault and GetForUser will both return null). This ensures there are no migration issues if an app depends on the per-app locations being shared (Win32), or if the app paths change when using the Desktop Bridge.


Cookies Cookies Cookies Cookies Cookies

Gets the path to the app's cookies.

Desktop Desktop Desktop Desktop Desktop

Gets the path to the desktop folder.

Documents Documents Documents Documents Documents

Gets a path to the documents folder.

Favorites Favorites Favorites Favorites Favorites

Gets a path to the favorites folder.

History History History History History

Gets a path to the history folder.

InternetCache InternetCache InternetCache InternetCache InternetCache

Gets the path to the internet cache folder.

LocalAppData LocalAppData LocalAppData LocalAppData LocalAppData

Gets the local application data folder.

ProgramData ProgramData ProgramData ProgramData ProgramData

Gets the program data folder.

RoamingAppData RoamingAppData RoamingAppData RoamingAppData RoamingAppData

Gets the roaming application data folder.


GetDefault() GetDefault() GetDefault() GetDefault() GetDefault()

Gets the paths to a user's various app data folders. Use this method in single user apps.

GetForUser(User) GetForUser(User) GetForUser(User) GetForUser(User) GetForUser(User)

Gets the paths to a user's various app data folders. Use this method in multi-user apps.