StorageApplicationPermissions.GetMostRecentlyUsedListForUser(User) Method

Definition

Gets an object that an app can use to track the files and/or locations (like folders) that the app has accessed most recently. This method returns an object that is scoped to the specified user. Use this method for multi-user applications.

public:
 static StorageItemMostRecentlyUsedList ^ GetMostRecentlyUsedListForUser(User ^ user);
 static StorageItemMostRecentlyUsedList GetMostRecentlyUsedListForUser(User const& user);
public static StorageItemMostRecentlyUsedList GetMostRecentlyUsedListForUser(User user);
function getMostRecentlyUsedListForUser(user)
Public Shared Function GetMostRecentlyUsedListForUser (user As User) As StorageItemMostRecentlyUsedList

Parameters

user
User

The user for which to create the most recently used (MRU) list object.

Returns

The most recently used (MRU) list object.

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Remarks

If you want to respond to ItemRemoved events, you must register your event handler every time you get a new reference to the StorageItemMostRecentlyUsedList.

Applies to

See also