Delen via


SearchSuggestionCollection.AppendQuerySuggestions Method

Definition

Appends a list of query suggestions to the list of search suggestions for the search pane.

public:
 virtual void AppendQuerySuggestions(IIterable<Platform::String ^> ^ suggestions) = AppendQuerySuggestions;
void AppendQuerySuggestions(IIterable<winrt::hstring> const& suggestions);
public void AppendQuerySuggestions(IEnumerable<string> suggestions);
function appendQuerySuggestions(suggestions)
Public Sub AppendQuerySuggestions (suggestions As IEnumerable(Of String))

Parameters

suggestions

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

The list of query suggestions.

Remarks

Important

To implement search in an app for Windows 10 or later, use AutoSuggestBox. See Auto-suggest box for more info.

You should not use Windows.ApplicationModel.Search APIs (SearchPane, SearchContract) or SearchBox APIs in apps for Windows 10 or later.

A query suggestion is a suggestion that the user can select as his or her query.

The search pane can display 5 suggestions, at most. Additionally, each separator you use takes the place of a suggestion and lowers the number of suggestions that you can display.

Applies to

See also