StorageFolderQueryResult.GetFoldersAsync StorageFolderQueryResult.GetFoldersAsync StorageFolderQueryResult.GetFoldersAsync StorageFolderQueryResult.GetFoldersAsync StorageFolderQueryResult.GetFoldersAsync Method

Definition

Overloads

GetFoldersAsync() GetFoldersAsync() GetFoldersAsync() GetFoldersAsync() GetFoldersAsync()

Retrieves a list of all the folders (or file groups) in the result set.

GetFoldersAsync(UInt32, UInt32) GetFoldersAsync(UInt32, UInt32) GetFoldersAsync(UInt32, UInt32) GetFoldersAsync(UInt32, UInt32) GetFoldersAsync(UInt32, UInt32)

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

GetFoldersAsync() GetFoldersAsync() GetFoldersAsync() GetFoldersAsync() GetFoldersAsync()

Retrieves a list of all the folders (or file groups) in the result set.

public : IAsyncOperation<IVectorView<StorageFolder>> GetFoldersAsync()
IAsyncOperation<IVectorView<StorageFolder>> GetFoldersAsync() const;
public IAsyncOperation<IReadOnlyList<StorageFolder>> GetFoldersAsync()
Public Function GetFoldersAsync() As IAsyncOperation<IReadOnlyList<StorageFolder>>(Of IVectorView)
Windows.Storage.Search.StorageFolderQueryResult.getFoldersAsync().done( /* Your success and error handlers */ );

Returns

IAsyncOperation<IReadOnlyList<StorageFolder>> IAsyncOperation<IReadOnlyList<StorageFolder>> IAsyncOperation<IReadOnlyList<StorageFolder>>

When this method completes successfully, it returns a list (type IVectorView ) of folders or file groups that are represented by storageFolder objects. Each of these folder or file group can also be enumerated to retrieve its contents.

See also

GetFoldersAsync(UInt32, UInt32) GetFoldersAsync(UInt32, UInt32) GetFoldersAsync(UInt32, UInt32) GetFoldersAsync(UInt32, UInt32) GetFoldersAsync(UInt32, UInt32)

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

public : IAsyncOperation<IVectorView<StorageFolder>> GetFoldersAsync(unsigned int startIndex, unsigned int maxNumberOfItems)
IAsyncOperation<IVectorView<StorageFolder>> GetFoldersAsync(uint32_t startIndex, uint32_t maxNumberOfItems) const;
public IAsyncOperation<IReadOnlyList<StorageFolder>> GetFoldersAsync(UInt32 startIndex, UInt32 maxNumberOfItems)
Public Function GetFoldersAsync(startIndex As UInt32, maxNumberOfItems As UInt32) As IAsyncOperation<IReadOnlyList<StorageFolder>>(Of IVectorView)
Windows.Storage.Search.StorageFolderQueryResult.getFoldersAsync(startIndex, maxNumberOfItems).done( /* Your success and error handlers */ );

Parameters

startIndex
UInt32 UInt32 UInt32

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

maxNumberOfItems
UInt32 UInt32 UInt32

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

IAsyncOperation<IReadOnlyList<StorageFolder>> IAsyncOperation<IReadOnlyList<StorageFolder>> IAsyncOperation<IReadOnlyList<StorageFolder>>

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.

See also