StorageFolderQueryResult.GetFoldersAsync(UInt32, UInt32) | getFoldersAsync(UInt32, UInt32) method

Applies to Windows only

Retrieves folders (or file groups) in a specified range.

Syntax


public:
IAsyncOperation<IVectorView>^ GetFoldersAsync(
  unsigned int startIndex, 
  unsigned int maxNumberOfItems
)

Parameters

startIndex

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

The zero-based index of the first folder to retrieve. This parameter defaults to 0.

maxNumberOfItems

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

The maximum number of folders or file groups to retrieve. Use -1 to retrieve all folders. If the range contains fewer folders than the max number, all folders in the range are returned.

Return value

Type: IAsyncOperation<IVectorView>

When this method completes successfully, it returns a list (type IVectorView) of folders or file groups that are represented by storageFolder objects.

Remarks

Use this overload to improve system performance by presenting a virtualized view of the query results that includes only the necessary subset of folders. For example, if your app displays many folders in a gallery you could use this range to retrieve only the folders that are currently visible to the user.

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

storageFolderQueryResult class
storageFolderQueryResult.getFoldersAsync() method
Windows.Foundation.Collections.IVectorView interface

 

 

Show:
© 2014 Microsoft