AccessListEntryView class

1 out of 2 rated this helpful - Rate this topic

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

Syntax


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

Attributes

VersionAttribute(NTDDI_WIN8)

Members

The AccessListEntryView class has these types of members:

Methods

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

MethodDescription
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.
GetEnumerator [C#, VB]Returns an enumerator that iterates through a collection.
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.

 

Properties

The AccessListEntryView class has these properties.

PropertyAccess typeDescription

Count [C#, VB]

Read-onlyGets the number of elements actually 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.

 

Remarks

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.

Examples

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


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 sampleFile.name in this field
    });
} else {
    // Handle empty list
}

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Namespace

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

Metadata

Windows.winmd

See also

StorageItemAccessList.Entries
StorageItemMostRecentlyUsedList
StorageItemMostRecentlyUsedList.Entries

 

 

Build date: 12/4/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.