共用方式為


SearchBoxResultSuggestionChosenEventArgs 類別

定義

提供 SearchBox.ResultSuggestionChosen 事件的事件資料。

public ref class SearchBoxResultSuggestionChosenEventArgs sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SearchBoxResultSuggestionChosenEventArgs final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class SearchBoxResultSuggestionChosenEventArgs final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SearchBoxResultSuggestionChosenEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class SearchBoxResultSuggestionChosenEventArgs
Public NotInheritable Class SearchBoxResultSuggestionChosenEventArgs
繼承
Object Platform::Object IInspectable SearchBoxResultSuggestionChosenEventArgs
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

重要

雖然 SearchBox 可在通用裝置系列中實作,但在行動裝置上無法使用所有功能。 請將 AutoSuggestBox 用在您的通用搜尋經驗。 請參閱 SearchBox 已取代為 AutoSuggestBox

建構函式

SearchBoxResultSuggestionChosenEventArgs()

初始化 SearchBoxResultSuggestionChosenEventArgs 類別的新實例。

屬性

KeyModifiers

取得當使用者按下 Enter 以挑選搜尋結果時所按下的任何修飾詞鍵。

Tag

使用者所選取建議結果的應用程式定義標籤。

適用於

另請參閱