StorageApplicationPermissions.GetMostRecentlyUsedListForUser(User) StorageApplicationPermissions.GetMostRecentlyUsedListForUser(User) StorageApplicationPermissions.GetMostRecentlyUsedListForUser(User) StorageApplicationPermissions.GetMostRecentlyUsedListForUser(User) 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 user) const;
public static StorageItemMostRecentlyUsedList GetMostRecentlyUsedListForUser(User user)
Public Shared Function GetMostRecentlyUsedListForUser(user As User) As StorageItemMostRecentlyUsedList
var storageItemMostRecentlyUsedList = Windows.Storage.AccessCache.StorageApplicationPermissions.getMostRecentlyUsedListForUser(user);

Parameters

user
User User User

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

Returns

Additional features and requirements

Device family
Windows 10, version 1903 (introduced v10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v8)

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.

See also