共用方式為


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。 如需詳細資訊 ,請參閱自動建議方塊

您不應該在 app 中使用Windows.ApplicationModel.Search API (SearchPaneSearchContract) 或SearchBox API,以供Windows 10或更新版本使用。

當應用程式將建議的結果附加至 searchSuggestionCollection時,會設定此標籤的值。

您可以使用這個屬性來顯示使用者所選取結果的檢視。

適用於

另請參閱