-api-id | -api-type |
---|---|
T:Windows.ApplicationModel.Search.SearchSuggestionCollection |
winrt class |
Represents a collection of search suggestions to be displayed in the search pane in response to a suggestionsrequested event.
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.
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.
An app retrieves this object through the SearchPaneSuggestionsRequest.searchSuggestionCollection property while handling a SuggestionsRequested event.
Search contract sample (Windows 8), SearchPane.SuggestionsRequested event, SearchPaneSuggestionsRequestedEventArgs class, SearchPaneSuggestionsRequestedEventArgs.Request property, SearchPaneSuggestionsRequest class, SearchPaneSuggestionsRequest.SearchSuggestionCollection property