SearchPaneQuerySubmittedEventArgs SearchPaneQuerySubmittedEventArgs SearchPaneQuerySubmittedEventArgs SearchPaneQuerySubmittedEventArgs Class

Definition

Provides data for a querysubmitted event that is associated with a searchPane instance.

public : sealed class SearchPaneQuerySubmittedEventArgs : ISearchPaneQuerySubmittedEventArgs, ISearchPaneQuerySubmittedEventArgsWithLinguisticDetails
public sealed class SearchPaneQuerySubmittedEventArgs : ISearchPaneQuerySubmittedEventArgs, ISearchPaneQuerySubmittedEventArgsWithLinguisticDetails
Public NotInheritable Class SearchPaneQuerySubmittedEventArgs Implements ISearchPaneQuerySubmittedEventArgs, ISearchPaneQuerySubmittedEventArgsWithLinguisticDetails
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows Desktop Extension SDK (introduced v10.0.10240.0) Xbox One Extensions for the UWP (introduced v10.0.10586.0)
API contract
Windows.ApplicationModel.Search.SearchContract (introduced v1)

Examples

The Search contract sample demonstrates how to register a querysubmitted event handler.

Note

You can access information about the event from the searchPaneQuerySubmittedEventArgs object that is passed to your querysubmitted event handler.

// Register QuerySubmitted handler for the window at window creation time and only registered once
// so that the app can receive user queries at any time.
SearchPane.GetForCurrentView().QuerySubmitted += new TypedEventHandler<SearchPane, SearchPaneQuerySubmittedEventArgs>(OnQuerySubmitted);
Windows.ApplicationModel.Search.SearchPane.getForCurrentView().onquerysubmitted = function (eventObject) {
    WinJS.log && WinJS.log("User submitted the search query: " + eventObject.queryText, "sample", "status");
};

Remarks

This object is passed to an app's querysubmitted event handler.

Properties

Language Language Language Language

The Internet Engineering Task Force (IETF) language tag (BCP 47 standard) that identifies the language currently associated with the user's text input device.

public : Platform::String Language { get; }
public string Language { get; }
Public ReadOnly Property Language As string
var string = searchPaneQuerySubmittedEventArgs.language;
Value
Platform::String string string string

The Internet Engineering Task Force (IETF) BCP 47 standard language tag.

See Also

LinguisticDetails LinguisticDetails LinguisticDetails LinguisticDetails

An object that provides linguistic information about query text that the user is entering through an Input Method Editor (IME).

public : SearchPaneQueryLinguisticDetails LinguisticDetails { get; }
public SearchPaneQueryLinguisticDetails LinguisticDetails { get; }
Public ReadOnly Property LinguisticDetails As SearchPaneQueryLinguisticDetails
var searchPaneQueryLinguisticDetails = searchPaneQuerySubmittedEventArgs.linguisticDetails;

QueryText QueryText QueryText QueryText

The text that was submitted through the search pane.

public : Platform::String QueryText { get; }
public string QueryText { get; }
Public ReadOnly Property QueryText As string
var string = searchPaneQuerySubmittedEventArgs.queryText;
Value
Platform::String string string string

The submitted query text.

See Also