Skip to main content
StorageApplicationPermissions.MostRecentlyUsedList | mostRecentlyUsedList property

Applies to Windows and Windows Phone

Gets an object that represents a list that an app can use to track the files and/or locations (like folders) that the app has accessed most recently.


var mostRecentlyUsedList = Windows.Storage.AccessCache.StorageApplicationPermissions.mostRecentlyUsedList;

public static StorageItemMostRecentlyUsedList MostRecentlyUsedList { get; }

Public Shared ReadOnly Property MostRecentlyUsedList As StorageItemMostRecentlyUsedList

static property StorageItemMostRecentlyUsedList^ MostRecentlyUsedList { 
   StorageItemMostRecentlyUsedList^ get();

Property value

Type: StorageItemMostRecentlyUsedList

The most recently used (MRU) list object.


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


This example shows you how to use the MostRecentlyUsedList property to store a file that was picked by the user so that you can keep track of the users most recently used files.

var openPicker = new Windows.Storage.Pickers.FileOpenPicker();
openPicker.pickSingleFileAsync().then(function (pickedFile) {
    if (pickedFile) {
        // Store the file to access again later
        var listToken = Windows.Storage.AccessCache.StorageApplicationPermissions.mostRecentlyUsedList.add(pickedFile);

        // Add code to process the file that the user picked
    } else {
        // No file

Make sure you check that a file was picked before you process the pickedFile (a StorageFile object), as shown in the example.


Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]


Windows::Storage::AccessCache [C++]



See also