SearchBoxQueryChangedEventArgs 类

定义

提供 SearchBox.QueryChanged 事件的事件数据。

public ref class SearchBoxQueryChangedEventArgs sealed
/// [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 SearchBoxQueryChangedEventArgs final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class SearchBoxQueryChangedEventArgs final
[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 SearchBoxQueryChangedEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class SearchBoxQueryChangedEventArgs
Public NotInheritable Class SearchBoxQueryChangedEventArgs
继承
Object Platform::Object IInspectable SearchBoxQueryChangedEventArgs
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

重要

尽管已在通用设备系列中实现了 SearchBox,但它无法在移动设备上正常运行。 将 AutoSuggestBox 用于通用搜索体验。 请参阅弃用 SearchBox 以支持 AutoSuggestBox

属性

Language

获取 Internet 工程任务组 (IETF) 语言标记 (BCP 47 标准) ,该标记标识当前与用户的文本输入设备关联的语言。

LinguisticDetails

获取有关用户通过输入法编辑器输入的查询文本的信息, (输入法) 。

QueryText

获取当前搜索的查询文本。

适用于

另请参阅