-api-id | -api-type |
---|---|
T:Windows.Storage.AppDataPaths |
winrt class |
AppDataPaths returns paths to commonly used application folders based on the KNOWNFOLDERID naming pattern.
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.