-api-id | -api-type |
---|---|
P:Windows.ApplicationModel.Search.SearchPaneResultSuggestionChosenEventArgs.Tag |
winrt property |
Gets the tag for the suggested result that the user selected.
The app-defined tag for the selected search result.
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 value of this tag is set by the app when it appends the suggested result to a searchSuggestionCollection.
You can use this property to display the view for the result the user selected.
SearchPane class, SearchPane.ResultSuggestionChosen event, SearchPaneResultSuggestionChosenEventArgs class, SearchSuggestionCollection class, SearchSuggestionCollection.AppendResultSuggestion method