SearchPaneResultSuggestionChosenEventArgs.Tag 属性

定义

获取用户选择的建议结果的标记。

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

属性值

String

Platform::String

winrt::hstring

所选搜索结果的应用定义的标记。

属性

注解

重要

若要在应用中实现Windows 10或更高版本的搜索,请使用 AutoSuggestBox。 有关详细信息 ,请参阅自动建议框

不应在 Windows 10 或更高版本的应用中使用 Windows.ApplicationModel.Search API (SearchPaneSearchContract) 或 SearchBox API。

应用在将建议的结果追加到 searchSuggestionCollection 时设置此标记的值。

可以使用此属性显示用户所选结果的视图。

适用于

另请参阅