IStorageFolderQueryOperations.GetItemsAsync method

Applies to Windows only

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

Syntax


IAsyncOperation<IVectorView>^ GetItemsAsync(
  unsigned int startIndex, 
  unsigned int 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

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

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:
© 2014 Microsoft