StorageFolder.GetFoldersAsync(CommonFolderQuery) | getFoldersAsync(CommonFolderQuery) method

Applies to Windows and Windows Phone

Gets a list of StorageFolder objects that represent groups of files in the current folder. Files are filtered and grouped based on the specified CommonFolderQuery.

Syntax


storageFolder.getFoldersAsync(query).done( /* Your success and error handlers */ );

Parameters

query

Type: CommonFolderQuery

The common folder query.

Return value

Type: IAsyncOperation<IVectorView>

When this method completes successfully, it returns a list of the files (type IVectorView). Each folder in the list is represented by a StorageFolder.

Remarks

Using a CommonFolderQuery lets you construct lists of folders and file groups based on specific file attributes (like title and date) quickly and easily.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Storage
Windows::Storage [C++]

Metadata

Windows.winmd

See also

StorageFolder
GetFoldersAsync(CommonFolderQuery, UInt32, UInt32)
GetFoldersAsync

 

 

Show:
© 2014 Microsoft. All rights reserved.