Windows.Storage.Search.StorageFolderQueryResult.GetFoldersAsync

December 9, 2020 ยท View on GitHub

-description

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

-parameters

-param startIndex

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

-param maxNumberOfItems

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.

-returns

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.

-examples

-see-also

StorageFolderQueryResult class, StorageFolderQueryResult.GetFoldersAsync() method, Windows.Foundation.Collections.IVectorView interface