Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IStorageFolderQueryOperations.GetItemsAsync method

Retrieves a list items like files, folders, or file groups, in a specified range (shallow enumeration).

Syntax


IAsyncOperation<IReadOnlyList> GetItemsAsync(
  uint startIndex, 
  uint maxItemsToRetrieve
)

Parameters

startIndex

Type: System.UInt32 [.NET] | uint32 [C++]

The zero-based index of the first item in the range. This parameter defaults to 0.

maxItemsToRetrieve

Type: System.UInt32 [.NET] | uint32 [C++]

The maximum number of items to retrieve. Use -1 to retrieve all items.

Return value

Type: IAsyncOperation<IVectorView>

When this method completes successfully, it returns a list (type IVectorView) of items. Each item is the IStorageItem type and represents a file, folder, or file group.

In this list, files are represented by StorageFile objects, and folders or file groups are represented by StorageFolder objects.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows 10 Mobile

Namespace

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

Metadata

Windows.winmd

See also

IStorageFolderQueryOperations interface
Windows.Foundation.IVectorView interface
Windows.Storage.IStorageItem interface
Windows.Storage.StorageFile class
Windows.Storage.StorageFolder class

 

 

Show: