AccessListEntryView class

Applies to Windows and Windows Phone

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

Syntax


public ref class AccessListEntryView sealed : IVectorView<AccessListEntry>,
    IIterable<AccessListEntry>

Attributes

[Version(0x06020000)]

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.
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 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.

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.

Examples

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

No code example is currently available or this language may not be supported.

Requirements

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]

Namespace

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

Metadata

Windows.winmd

See also

StorageItemAccessList.Entries
StorageItemMostRecentlyUsedList
StorageItemMostRecentlyUsedList.Entries

 

 

Show:
© 2014 Microsoft