UserDataPaths UserDataPaths UserDataPaths UserDataPaths UserDataPaths Class

Definition

Returns full paths for common user data folders. User data folders are based on the KNOWNFOLDERID naming pattern.

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

Windows 10 requirements

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

Remarks

This class contains methods and properties that return paths consistent with those that a Desktop app would use.

Properties

CameraRoll CameraRoll CameraRoll CameraRoll CameraRoll

Gets the path to a user's Camera Roll folder.

Cookies Cookies Cookies Cookies Cookies

Gets the path to a user's Cookies app data folder.

Desktop Desktop Desktop Desktop Desktop

Gets the path to a user's Desktop folder.

Documents Documents Documents Documents Documents

Gets the path to a user's Documents folder.

Downloads Downloads Downloads Downloads Downloads

Gets the path to a user's Downloads folder.

Favorites Favorites Favorites Favorites Favorites

Gets the path to a user's Favorites folder.

History History History History History

Gets the path to a user's History folder.

InternetCache InternetCache InternetCache InternetCache InternetCache

Gets the path to a user's Temporary Internet Files folder.

LocalAppData LocalAppData LocalAppData LocalAppData LocalAppData

Gets the path to a user's Local app data folder.

LocalAppDataLow LocalAppDataLow LocalAppDataLow LocalAppDataLow LocalAppDataLow

Gets the path to a user's LocalLow app data folder.

Music Music Music Music Music

Gets the path to a user's Music folder.

Pictures Pictures Pictures Pictures Pictures

Gets the path to a user's Pictures folder.

Profile Profile Profile Profile Profile

Gets the path to a user's profile on the machine.

Recent Recent Recent Recent Recent

Gets the path to a user's Recent Items folder.

RoamingAppData RoamingAppData RoamingAppData RoamingAppData RoamingAppData

Gets the path to a user's Roaming app data folder.

SavedPictures SavedPictures SavedPictures SavedPictures SavedPictures

Gets the path to a user's Saved Pictures folder.

Screenshots Screenshots Screenshots Screenshots Screenshots

Gets the path to a user's Screenshots folder.

Templates Templates Templates Templates Templates

Gets the path to a user's Common Templates folder.

Videos Videos Videos Videos Videos

Gets the path to a user's Videos folder.

Methods

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

Gets the paths to a user's various data folders. Use this method for single user machines.

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

Gets the paths to a user's various data folders. Use this method for multi-user machines.