Bagikan melalui


SearchPaneQueryChangedEventArgs Kelas

Definisi

Menyediakan data untuk peristiwa QueryChanged yang terkait dengan objek SearchPane .

public ref class SearchPaneQueryChangedEventArgs sealed : ISearchPaneQueryChangedEventArgs
/// [Windows.Foundation.Metadata.ContractVersion(Windows.ApplicationModel.Search.SearchContract, 65536)]
/// [Windows.Foundation.Metadata.Deprecated("SearchPaneQueryChangedEventArgs may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.ApplicationModel.Search.SearchContract)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class SearchPaneQueryChangedEventArgs final : ISearchPaneQueryChangedEventArgs
/// [Windows.Foundation.Metadata.ContractVersion(Windows.ApplicationModel.Search.SearchContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Deprecated("SearchPaneQueryChangedEventArgs may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.ApplicationModel.Search.SearchContract")]
class SearchPaneQueryChangedEventArgs final : ISearchPaneQueryChangedEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.ApplicationModel.Search.SearchContract), 65536)]
[Windows.Foundation.Metadata.Deprecated("SearchPaneQueryChangedEventArgs may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.ApplicationModel.Search.SearchContract))]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class SearchPaneQueryChangedEventArgs : ISearchPaneQueryChangedEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.ApplicationModel.Search.SearchContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Deprecated("SearchPaneQueryChangedEventArgs may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.ApplicationModel.Search.SearchContract")]
public sealed class SearchPaneQueryChangedEventArgs : ISearchPaneQueryChangedEventArgs
Public NotInheritable Class SearchPaneQueryChangedEventArgs
Implements ISearchPaneQueryChangedEventArgs
Warisan
Object Platform::Object IInspectable SearchPaneQueryChangedEventArgs
Atribut
Penerapan

Persyaratan Windows

Rangkaian perangkat
Windows Desktop Extension SDK (diperkenalkan dalam 10.0.10240.0)
Xbox One Extensions for the UWP (diperkenalkan dalam 10.0.10586.0)
API contract
Windows.ApplicationModel.Search.SearchContract (diperkenalkan dalam v1.0)

Keterangan

Penting

Untuk mengimplementasikan pencarian di aplikasi untuk Windows 10 atau yang lebih baru, gunakan AutoSuggestBox. Lihat kotak Saran otomatis untuk informasi selengkapnya.

Anda tidak boleh menggunakan API Windows.ApplicationModel.Search (SearchPane, SearchContract) atau SEARCHBox API di aplikasi untuk Windows 10 atau yang lebih baru.

Objek ini diteruskan ke penanganan aktivitas QueryChanged aplikasi.

Properti

Language

Mendapatkan tag bahasa Internet Engineering Task Force (IETF) (standar BCP 47) yang mengidentifikasi bahasa yang saat ini terkait dengan perangkat input teks pengguna.

LinguisticDetails

Mendapatkan objek yang menyediakan informasi linguistik tentang teks kueri yang dimasukkan pengguna melalui Editor Metode Input (IME).

QueryText

Mendapatkan teks di kotak pencarian saat peristiwa pertukaran kueri terjadi.

Berlaku untuk

Lihat juga