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

Applies to Windows only

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

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

None supported

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