StorageFolder.CreateFolderQuery | createFolderQuery methods

Applies to Windows and Windows Phone

Gets a query result object that contains the subfolders in the current folder. Some options also return the contents of nested subfolders, grouped into virtual folders.

Overload list

MethodDescription
CreateFolderQuery() Gets a query result object that contains the subfolders in the current folder.
CreateFolderQuery(CommonFolderQuery) Gets a query result object that contains the subfolders in the current folder. When the value of the query argument is something other than CommonFolderQuery.DefaultQuery, gets a list of virtual folders that represent containers for groups of files in the subfolders of the current folder. Files are grouped into folders based on the specified value from the CommonFolderQuery enumeration.

Remarks

The StorageFolder class provides many methods that get a list of folders. For a list of methods that identifies shallow queries and deep queries, see the Remarks in the topic GetFoldersAsync.

You can also get a list of subfolders in the current folder asynchronously by calling one of the GetFoldersAsync methods.

To specify additional query options, call the CreateFolderQueryWithOptions method.

To get items that are files or folders, call the CreateItemQuery method.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

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

Metadata

Windows.winmd

See also

StorageFolder

 

 

Show:
© 2014 Microsoft