Share via


SearchQueryLinguisticDetails Class

Definition

Provides information about query text that the user enters through an Input Method Editor (IME).

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
Inheritance
Object Platform::Object IInspectable SearchQueryLinguisticDetails
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

Important

To implement search in an app for Windows 10 or later, use AutoSuggestBox. See Auto-suggest box for more info.

You should not use Windows.ApplicationModel.Search APIs (SearchPane, SearchContract) or SearchBox APIs in apps for Windows 10 or later.

Get this object through the LinguisticDetails property while handling a QueryChanged event or through the LinguisticDetails property while handling a SuggestionsRequested event.

Constructors

SearchQueryLinguisticDetails(IIterable<String>, UInt32, UInt32)

Initializes a new instance of the SearchQueryLinguisticDetails class.

Properties

QueryTextAlternatives

Gets a list of the text alternatives for the current query text. These alternatives account for uncomposed text the user is entering in an IME.

QueryTextCompositionLength

Gets the length of the portion of the query text that the user is composing with an Input Method Editor (IME).

QueryTextCompositionStart

Gets the starting location of the text that the user is composing with an Input Method Editor (IME).

Applies to