Condividi tramite


ISearchPaneQueryChangedEventArgs.QueryText Proprietà

Definizione

Testo nella casella di ricerca quando si verifica l'evento QueryChanged .

public:
 property Platform::String ^ QueryText { Platform::String ^ get(); };
/// [get: Windows.Foundation.Metadata.Deprecated("ISearchPaneQueryChangedEventArgs may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.ApplicationModel.Search.SearchContract)]
winrt::hstring QueryText();
/// [get: Windows.Foundation.Metadata.Deprecated("ISearchPaneQueryChangedEventArgs may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.ApplicationModel.Search.SearchContract")]
winrt::hstring QueryText();
public string QueryText { [Windows.Foundation.Metadata.Deprecated("ISearchPaneQueryChangedEventArgs may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.ApplicationModel.Search.SearchContract))] get; }
public string QueryText { [Windows.Foundation.Metadata.Deprecated("ISearchPaneQueryChangedEventArgs may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.ApplicationModel.Search.SearchContract")] get; }
var string = iSearchPaneQueryChangedEventArgs.queryText;
Public ReadOnly Property QueryText As String

Valore della proprietà

String

Platform::String

winrt::hstring

Testo della query corrente.

Attributi

Commenti

Importante

Per implementare la ricerca in un'app per Windows 10 o versioni successive, usare AutoSuggestBox. Per altre informazioni, vedere Casella di suggerimento automatico .

Non è consigliabile usare API Windows.ApplicationModel.Search (SearchPane, SearchContract) o SearchBox nelle app per Windows 10 o versioni successive.

Si applica a

Vedi anche