SearchPaneResultSuggestionChosenEventArgs class

SearchPaneResultSuggestionChosenEventArgs class

Provides data for a resultsuggestionchosen event that is associated with a searchPane object.

Syntax


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

Members

The SearchPaneResultSuggestionChosenEventArgs class has these types of members:

Properties

The SearchPaneResultSuggestionChosenEventArgs class has these properties.

PropertyAccess typeDescription

Tag

Read-onlyThe tag for the suggested result that the user selected.

 

Remarks

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

Examples

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

Note  You can get information about the event from the searchPaneResultSuggestionChosenEventArgs object that is passed to your resultsuggestionchosen event handler.
 

Windows.ApplicationModel.Search.SearchPane.getForCurrentView().onresultsuggestionchosen = function (eventObject) {
    WinJS.log && WinJS.log("Result Suggestion Selected with Tag: " + eventObject.tag, "sample", "status");
};


Requirements (Windows 10 device family)

Device family

Desktop, introduced version 10.0.10240.0
Xbox, introduced version 10.0.10586.0

API contract

Windows.ApplicationModel.Search.SearchContract, introduced version 1.0

Namespace

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

Metadata

Windows.ApplicationModel.Search.SearchContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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

Attributes

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

See also

Object
Search contract sample
Reference
SearchPane class
SearchPane.ResultSuggestionChosen event
SearchSuggestionCollection.AppendResultSuggestion method

 

 

Show:
© 2016 Microsoft