IStorageFolderQueryOperations.GetFoldersAsync(CommonFolderQuery) method

Applies to Windows only

Retrieves a list of folders and file groups based on a specified folder query. This returns a snapshot of the folders or file groups at a point in time and does not allow you to keep track of changes through events.

Syntax


IAsyncOperation<IReadOnlyList> GetFoldersAsync(
  CommonFolderQuery query
)

Parameters

query

Type: CommonFolderQuery

The type of folder query to perform.

Return value

Type: IAsyncOperation<IVectorView>

When this method completes successfully, it returns a list (type IVectorView) of folders of file groups that 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
IStorageFolderQueryOperations.GetFoldersAsync methods
IStorageFolderQueryOperations.GetFoldersAsync(CommonFolderQuery, UInt32, UInt32) method
Windows.Foundation.IVectorView interface
Windows.Storage.StorageFolder class

 

 

Show:
© 2014 Microsoft