Share via


SearchPaneResultSuggestionChosenEventArgs.Tag Property

Definition

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

public:
 property Platform::String ^ Tag { Platform::String ^ get(); };
/// [get: Windows.Foundation.Metadata.Deprecated("ISearchPaneResultSuggestionChosenEventArgs may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.ApplicationModel.Search.SearchContract)]
winrt::hstring Tag();
/// [get: Windows.Foundation.Metadata.Deprecated("ISearchPaneResultSuggestionChosenEventArgs may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.ApplicationModel.Search.SearchContract")]
winrt::hstring Tag();
public string Tag { [Windows.Foundation.Metadata.Deprecated("ISearchPaneResultSuggestionChosenEventArgs may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.ApplicationModel.Search.SearchContract))] get; }
public string Tag { [Windows.Foundation.Metadata.Deprecated("ISearchPaneResultSuggestionChosenEventArgs may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.ApplicationModel.Search.SearchContract")] get; }
var string = searchPaneResultSuggestionChosenEventArgs.tag;
Public ReadOnly Property Tag As String

Property Value

String

Platform::String

winrt::hstring

The app-defined tag for the selected search result.

Attributes

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.

Applies to

See also