StorageFolder.CreateFolderQueryWithOptions | createFolderQueryWithOptions method

Expand Minimize
0 out of 2 rated this helpful - Rate this topic

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.

Windows Phone 8

This API is not implemented and will throw an exception if called.

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

 

 

Build date: 2/25/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.