Expand Minimize

StorageFolder.CreateFolderQueryWithOptions | createFolderQueryWithOptions method

Applies to Windows only

Creates a query result object to filter and enumerate files in the current folder by grouping them into sub-folders. Files are included in the query result and grouped into sub-folders based on the specified QueryOptions.

Syntax


var storageFolderQueryResult = storageFolder.createFolderQueryWithOptions(queryOptions);

Parameters

queryOptions

Type: QueryOptions

The criterion that are applied to include and group files in the query result object.

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

We recommend that you use AreQueryOptionsSupported to verify that the QueryOptions you specify are available for the current folder. You can also check if a specific CommonFileQuery or CommonFolderQuery value is available, by calling IsCommonFileQuerySupported or IsCommonFolderQuerySupported, respectively.

For Windows Server 2012:  You must install indexer components to use some QueryOptions, CommonFileQuery values, and CommonFolderQuery values because indexer components are not installed by default.

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

 

 

Show:
© 2014 Microsoft