SearchPaneQuerySubmittedEventArgs.QueryText Proprietà

Definizione

Ottiene il testo inviato tramite il riquadro di ricerca.

public:
 property Platform::String ^ QueryText { Platform::String ^ get(); };
/// [get: Windows.Foundation.Metadata.Deprecated("ISearchPaneQuerySubmittedEventArgs 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("ISearchPaneQuerySubmittedEventArgs 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("ISearchPaneQuerySubmittedEventArgs 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("ISearchPaneQuerySubmittedEventArgs may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.ApplicationModel.Search.SearchContract")] get; }
var string = searchPaneQuerySubmittedEventArgs.queryText;
Public ReadOnly Property QueryText As String

Valore della proprietà

String

Platform::String

winrt::hstring

Testo della query inviato.

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