QueryOptions.QueryOptions(CommonFileQuery, IIterable(String)) constructor

Applies to Windows only

Creates an instance of the QueryOptions class for enumerating files and initializes it with values provided by the specified CommonFileQuery and an optional file type filter that determines which files to include in query results.

Syntax


var queryOptions = new Windows.Storage.Search.QueryOptions(query, fileTypeFilter);

Parameters

query

Type: CommonFileQuery

An enumeration value that specifies the search parameters to use to query files.

The CommonFileQuery enumeration provides search parameters for several common types of file queries. For example, deep queries that retrieve all the files in the folder where the query is created or shallow queries that retrieve only the files in the top-level of the folder. The enumeration also determines how query results are sorted.

fileTypeFilter

Type: IIterable<String> [JavaScript/C++] | System.Collections.Generic.IEnumerable<String> [.NET]

An array of file types to be included in the query results. To include all file types, supply null or an array containing a single entry of "*".

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

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

Metadata

Windows.winmd

See also

QueryOptions
QueryOptions(CommonFolderQuery)
QueryOptions

 

 

Show:
© 2014 Microsoft