SearchPaneResultSuggestionChosenEventArgs class

Applies to Windows only

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

Syntax


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

Attributes

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

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

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

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

 

 

Show:
© 2014 Microsoft