SearchSuggestionCollection.AppendQuerySuggestions Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.