共用方式為


SearchQueryLinguisticDetails 類別

定義

提供使用者透過輸入法編輯器輸入的查詢文字資訊, (輸入法) 。

public ref class SearchQueryLinguisticDetails sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Search.ISearchQueryLinguisticDetailsFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class SearchQueryLinguisticDetails final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Search.ISearchQueryLinguisticDetailsFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class SearchQueryLinguisticDetails final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Search.ISearchQueryLinguisticDetailsFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class SearchQueryLinguisticDetails
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Search.ISearchQueryLinguisticDetailsFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class SearchQueryLinguisticDetails
function SearchQueryLinguisticDetails(queryTextAlternatives, queryTextCompositionStart, queryTextCompositionLength)
Public NotInheritable Class SearchQueryLinguisticDetails
繼承
Object Platform::Object IInspectable SearchQueryLinguisticDetails
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

重要

若要在應用程式中實作Windows 10或更新版本的搜尋,請使用AutoSuggestBox。 如需詳細資訊,請參閱 自動建議方塊

您不應該在 app 中使用Windows.ApplicationModel.Search API (SearchPaneSearchContract) 或SearchBox API,以進行Windows 10或更新版本。

處理QueryChanged事件時,或透過LinguisticDetails屬性處理SuggestionsRequested事件時,透過LinguisticDetails屬性取得這個物件。

建構函式

SearchQueryLinguisticDetails(IIterable<String>, UInt32, UInt32)

初始化 SearchQueryLinguisticDetails 類別的新實例。

屬性

QueryTextAlternatives

取得目前查詢文字的文字替代專案清單。 這些替代專案會考慮使用者正在輸入 IME 的未編譯文字。

QueryTextCompositionLength

取得使用者以輸入法編輯器撰寫之查詢文字部分的長度, (輸入法) 。

QueryTextCompositionStart

取得使用者以輸入法編輯器撰寫的文字起始位置, (輸入法) 。

適用於