Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.84 KB

searchsuggestionsrequest_searchsuggestioncollection.md

File metadata and controls

33 lines (21 loc) · 1.84 KB
-api-id -api-type
P:Windows.ApplicationModel.Search.SearchSuggestionsRequest.SearchSuggestionCollection
winrt property

Windows.ApplicationModel.Search.SearchSuggestionsRequest.SearchSuggestionCollection

-description

Gets the suggestions to display in the search pane or in-app search box for the current query. Apps provide suggestions to display by appending them to this SearchSuggestionCollection object.

-property-value

The suggestions to display. Apps provide suggestions by appending them to this SearchSuggestionCollection object.

-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.

Use the SearchSuggestionCollection object to append app-provided suggestions and search separators to display in the search pane or in-app search box.

When the request for suggestions is completed, either by returning from the SuggestionsRequested event handler or by calling Complete, the search pane or in-app search box displays the suggestions in the SearchSuggestionCollection.

-examples

-see-also