Share via


ContentIndexer.CreateQuery Method

Definition

Overloads

CreateQuery(String, IIterable<String>)

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

CreateQuery(String, IIterable<String>, IIterable<SortEntry>)

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

CreateQuery(String, IIterable<String>, IIterable<SortEntry>, String)

Builds a query with the specified search filter, sort order, filter language, and identifies which properties to retrieve.

CreateQuery(String, IIterable<String>)

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

public:
 virtual ContentIndexerQuery ^ CreateQuery(Platform::String ^ searchFilter, IIterable<Platform::String ^> ^ propertiesToRetrieve) = CreateQuery;
/// [Windows.Foundation.Metadata.Overload("CreateQuery")]
ContentIndexerQuery CreateQuery(winrt::hstring const& searchFilter, IIterable<winrt::hstring> const& propertiesToRetrieve);
[Windows.Foundation.Metadata.Overload("CreateQuery")]
public ContentIndexerQuery CreateQuery(string searchFilter, IEnumerable<string> propertiesToRetrieve);
function createQuery(searchFilter, propertiesToRetrieve)
Public Function CreateQuery (searchFilter As String, propertiesToRetrieve As IEnumerable(Of String)) As ContentIndexerQuery

Parameters

searchFilter
String

Platform::String

winrt::hstring

The Advanced Query Syntax (AQS) filter to apply.

propertiesToRetrieve

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

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

Returns

The query.

Attributes

Remarks

Call the GetPropertiesAsync method to run the query.

See also

Applies to

CreateQuery(String, IIterable<String>, IIterable<SortEntry>)

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

public:
 virtual ContentIndexerQuery ^ CreateQuery(Platform::String ^ searchFilter, IIterable<Platform::String ^> ^ propertiesToRetrieve, IIterable<SortEntry> ^ sortOrder) = CreateQuery;
/// [Windows.Foundation.Metadata.Overload("CreateQueryWithSortOrder")]
ContentIndexerQuery CreateQuery(winrt::hstring const& searchFilter, IIterable<winrt::hstring> const& propertiesToRetrieve, IIterable<SortEntry> const& sortOrder);
[Windows.Foundation.Metadata.Overload("CreateQueryWithSortOrder")]
public ContentIndexerQuery CreateQuery(string searchFilter, IEnumerable<string> propertiesToRetrieve, IEnumerable<SortEntry> sortOrder);
function createQuery(searchFilter, propertiesToRetrieve, sortOrder)
Public Function CreateQuery (searchFilter As String, propertiesToRetrieve As IEnumerable(Of String), sortOrder As IEnumerable(Of SortEntry)) As ContentIndexerQuery

Parameters

searchFilter
String

Platform::String

winrt::hstring

The Advanced Query Syntax (AQS) filter.

propertiesToRetrieve

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

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

sortOrder

IIterable<SortEntry>

IEnumerable<SortEntry>

The sort order for the filtered results.

Returns

The query.

Attributes

See also

Applies to

CreateQuery(String, IIterable<String>, IIterable<SortEntry>, String)

Builds a query with the specified search filter, sort order, filter language, and identifies which properties to retrieve.

public:
 virtual ContentIndexerQuery ^ CreateQuery(Platform::String ^ searchFilter, IIterable<Platform::String ^> ^ propertiesToRetrieve, IIterable<SortEntry> ^ sortOrder, Platform::String ^ searchFilterLanguage) = CreateQuery;
/// [Windows.Foundation.Metadata.Overload("CreateQueryWithSortOrderAndLanguage")]
ContentIndexerQuery CreateQuery(winrt::hstring const& searchFilter, IIterable<winrt::hstring> const& propertiesToRetrieve, IIterable<SortEntry> const& sortOrder, winrt::hstring const& searchFilterLanguage);
[Windows.Foundation.Metadata.Overload("CreateQueryWithSortOrderAndLanguage")]
public ContentIndexerQuery CreateQuery(string searchFilter, IEnumerable<string> propertiesToRetrieve, IEnumerable<SortEntry> sortOrder, string searchFilterLanguage);
function createQuery(searchFilter, propertiesToRetrieve, sortOrder, searchFilterLanguage)
Public Function CreateQuery (searchFilter As String, propertiesToRetrieve As IEnumerable(Of String), sortOrder As IEnumerable(Of SortEntry), searchFilterLanguage As String) As ContentIndexerQuery

Parameters

searchFilter
String

Platform::String

winrt::hstring

The Advanced Query Syntax (AQS) filter to apply.

propertiesToRetrieve

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

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

sortOrder

IIterable<SortEntry>

IEnumerable<SortEntry>

The sort order for the filtered results.

searchFilterLanguage
String

Platform::String

winrt::hstring

The language that's used to parse Advanced Query Syntax (AQS), specified as a BCP-47 language tag.

Returns

The query.

Attributes

See also

Applies to