StorageFolder.CreateFolderQuery() | createFolderQuery() method

Applies to Windows only

Creates a query result object to filter and enumerate top-level sub-folders of the current folder.

Syntax


public:
StorageFolderQueryResult^ CreateFolderQuery()

Parameters

This method has no parameters.

Return value

Type: StorageFolderQueryResult

A query result object that can be used to filter and enumerate files in the current folder by their sub-folder.

Remarks

This method creates a query result object identical to query result created by calling CreateFolderQuery(CommonFolderQuery) and specifying the CommonFolderQuery.DefaultQuery enumeration value.

You can also get a top-level list of sub-folders of the current folder asynchronously by calling one of the GetFoldersAsync methods.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

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

Metadata

Windows.winmd

See also

StorageFolder
CreateFolderQuery(CommonFolderQuery)

 

 

Show:
© 2014 Microsoft