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

用户选择的建议结果的应用定义标记。

适用于

另请参阅