Windows Dev Center

ContentIndexer.CreateQuery(String, IIterable(String)) | createQuery(String, IIterable(String)) method

Builds a query with the specified search filter and identifies which properties to retrieve.

Syntax


var contentIndexerQuery = contentIndexer.createQuery(searchFilter, propertiesToRetrieve);

Parameters

searchFilter

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The AQS filter to apply.

propertiesToRetrieve

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

The properties to retrieve, specified by their Windows canonical property names.

Return value

Type: ContentIndexerQuery

The query.

Remarks

Call the GetPropertiesAsync method to run the query.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows 10 Mobile

Namespace

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

Metadata

Windows.winmd

See also

ContentIndexer
CreateQuery(String, IIterable(String), IIterable(SortEntry), String)
CreateQuery(String, IIterable(String), IIterable(SortEntry))
GetPropertiesAsync

 

 

Show:
© 2015 Microsoft