SearchPaneQuerySubmittedEventArgs class

Applies to Windows only

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

Syntax


/* For information about creating or accessing this object, see Remarks. */

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06020000)]

Members

The SearchPaneQuerySubmittedEventArgs class has these types of members:

Properties

The SearchPaneQuerySubmittedEventArgs class has these properties.

PropertyAccess typeDescription

Language

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

LinguisticDetails

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

QueryText

Read-onlyThe text that was submitted through the search pane.

 

Remarks

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

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.


Windows.ApplicationModel.Search.SearchPane.getForCurrentView().onquerysubmitted = function (eventObject) {
    WinJS.log && WinJS.log("User submitted the search query: " + eventObject.queryText, "sample", "status");
};


Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

None supported

Namespace

Windows.ApplicationModel.Search
Windows::ApplicationModel::Search [C++]

Metadata

Windows.winmd

See also

Reference
SearchPane.QuerySubmitted event
SearchPaneQuerySubmittedEventArgs class

 

 

Show:
© 2014 Microsoft