Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 1.56 KB

searchpaneresultsuggestionchoseneventargs_tag.md

File metadata and controls

35 lines (22 loc) · 1.56 KB
-api-id -api-type
P:Windows.ApplicationModel.Search.SearchPaneResultSuggestionChosenEventArgs.Tag
winrt property

Windows.ApplicationModel.Search.SearchPaneResultSuggestionChosenEventArgs.Tag

-description

Gets the tag for the suggested result that the user selected.

-property-value

The app-defined tag for the selected search result.

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

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.

-examples

-see-also

SearchPane class, SearchPane.ResultSuggestionChosen event, SearchPaneResultSuggestionChosenEventArgs class, SearchSuggestionCollection class, SearchSuggestionCollection.AppendResultSuggestion method