Skip to main content
AccessListEntryView class

Applies to Windows and Windows Phone

A list of the entries that are in an app's StorageItemMostRecentlyUsedList or StorageItemAccessList.


var accessListEntryView = storageItemAccessList.entries;
var accessListEntryView = storageItemMostRecentlyUsedList.entries;

public sealed class AccessListEntryView : IReadOnlyList<AccessListEntry>,

Public NotInheritable Class AccessListEntryView
    Implements IReadOnlyList(Of AccessListEntry), _
    IEnumerable(Of AccessListEntry)

public ref class AccessListEntryView sealed : IVectorView<AccessListEntry>,


[ Version(0x06020000)]


The AccessListEntryView class has these types of members:


The AccessListEntryView class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

First [C++, JavaScript]Retrieves the first storage item from the access list or most recently used (MRU) list.
GetAt [C++, JavaScript]Retrieves the storage item at the specified index in the access list or most recently used (MRU) list.
GetMany [C++, JavaScript]Retrieves the storage items that start at the specified index in the access list or most recently used (MRU) list.
IndexOf [C++, JavaScript]Retrieves the index of the specified storage item in the access list or most recently used (MRU) list.



The AccessListEntryView class has these properties.

PropertyAccess typeDescription

Count [C#, VB]

Read-onlyGets the number of elements contained in the collection.

Item [C#, VB]

Read-onlyGets or sets the element at the specified index.

Size [C++, JavaScript]

Read-onlyGets the number of storage items in the access list or most recently used (MRU) list.



To see more code examples that use this class, see the File access sample.

Collection member lists

For JavaScript, AccessListEntryView has the members shown in the member lists. In addition, AccessListEntryView supports a length property, members of Array.prototype, and using an index to access items.

Enumerating the collection in C# or Microsoft Visual Basic

AccessListEntryView is enumerable, so you can use language-specific syntax such as foreach in C# to enumerate the items in the collection. The compiler does the type-casting for you and you won't need to cast to IEnumerable<AccessListEntry> explicitly. If you do need to cast explicitly, for example if you want to call GetEnumerator, cast to IEnumerable<T> with an AccessListEntry constraint.


The File access sample demonstrates how to enumerate entries in the MostRecentlyUsedList.

AccessListEntryView entries = StorageApplicationPermissions.MostRecentlyUsedList.Entries;
if (entries.Count > 0)
    foreach (AccessListEntry entry in entries)
        StringBuilder outputText = new StringBuilder("The MRU list contains the following item(s):" + Environment.NewLine + Environment.NewLine);
    // Handle empty list

var entries = Windows.Storage.AccessCache.StorageApplicationPermissions.mostRecentlyUsedList.entries;
if (entries.size > 0) {
    var outputText = "The MRU list contains the following item(s):<br /><br />";
    mruEntries.forEach(function (entry) {
        mruOutputText += entry.metadata + "<br />"; // Application previously chose to store in this field
} else {
    // Handle empty list


Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

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


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



See also