Share via


SearchSuggestionManager.SetQuery Method

Definition

Overloads

SetQuery(String)

Assigns the current search query.

SetQuery(String, String)

Assigns the current search query with the specified input language.

SetQuery(String, String, SearchQueryLinguisticDetails)

Assigns the current search query with the specified input language and Input Method Editor (IME) info.

SetQuery(String)

Assigns the current search query.

public:
 virtual void SetQuery(Platform::String ^ queryText) = SetQuery;
/// [Windows.Foundation.Metadata.Overload("SetQuery")]
void SetQuery(winrt::hstring const& queryText);
[Windows.Foundation.Metadata.Overload("SetQuery")]
public void SetQuery(string queryText);
function setQuery(queryText)
Public Sub SetQuery (queryText As String)

Parameters

queryText
String

Platform::String

winrt::hstring

The query.

Attributes

Remarks

The SearchBox control calls the SetQuery method when the query text changes.

See also

Applies to

SetQuery(String, String)

Assigns the current search query with the specified input language.

public:
 virtual void SetQuery(Platform::String ^ queryText, Platform::String ^ language) = SetQuery;
/// [Windows.Foundation.Metadata.Overload("SetQueryWithLanguage")]
void SetQuery(winrt::hstring const& queryText, winrt::hstring const& language);
[Windows.Foundation.Metadata.Overload("SetQueryWithLanguage")]
public void SetQuery(string queryText, string language);
function setQuery(queryText, language)
Public Sub SetQuery (queryText As String, language As String)

Parameters

queryText
String

Platform::String

winrt::hstring

The query.

language
String

Platform::String

winrt::hstring

The input language.

Attributes

Remarks

The SearchBox control calls the SetQuery method when the query text changes.

See also

Applies to

SetQuery(String, String, SearchQueryLinguisticDetails)

Assigns the current search query with the specified input language and Input Method Editor (IME) info.

public:
 virtual void SetQuery(Platform::String ^ queryText, Platform::String ^ language, SearchQueryLinguisticDetails ^ linguisticDetails) = SetQuery;
/// [Windows.Foundation.Metadata.Overload("SetQueryWithSearchQueryLinguisticDetails")]
void SetQuery(winrt::hstring const& queryText, winrt::hstring const& language, SearchQueryLinguisticDetails const& linguisticDetails);
[Windows.Foundation.Metadata.Overload("SetQueryWithSearchQueryLinguisticDetails")]
public void SetQuery(string queryText, string language, SearchQueryLinguisticDetails linguisticDetails);
function setQuery(queryText, language, linguisticDetails)
Public Sub SetQuery (queryText As String, language As String, linguisticDetails As SearchQueryLinguisticDetails)

Parameters

queryText
String

Platform::String

winrt::hstring

The query.

language
String

Platform::String

winrt::hstring

The input language.

linguisticDetails
SearchQueryLinguisticDetails

Info about the query text that the user enters through an Input Method Editor (IME).

Attributes

Remarks

The SearchBox control calls the SetQuery method when the query text changes.

See also

Applies to