SearchPaneResultSuggestionChosenEventArgs SearchPaneResultSuggestionChosenEventArgs SearchPaneResultSuggestionChosenEventArgs SearchPaneResultSuggestionChosenEventArgs SearchPaneResultSuggestionChosenEventArgs Class

Definition

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

public : sealed class SearchPaneResultSuggestionChosenEventArgs
struct winrt::Windows::ApplicationModel::Search::SearchPaneResultSuggestionChosenEventArgs
public sealed class SearchPaneResultSuggestionChosenEventArgs
Public NotInheritable Class SearchPaneResultSuggestionChosenEventArgs
// 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 resultsuggestionchosen event handler.

Note

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

searchPane.ResultSuggestionChosen += new TypedEventHandler<SearchPane, SearchPaneResultSuggestionChosenEventArgs>(OnResultSuggestionChosen);
Windows.ApplicationModel.Search.SearchPane.getForCurrentView().onresultsuggestionchosen = function (eventObject) {
    WinJS.log && WinJS.log("Result Suggestion Selected with Tag: " + eventObject.tag, "sample", "status");
};

Remarks

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

Properties

Tag Tag Tag Tag Tag

The tag for the suggested result that the user selected.

See also

  • Search contract sample
  • SearchPane
  • ResultSuggestionChosen
  • Windows.ApplicationModel.Search.SearchSuggestionCollection.AppendResultSuggestion(System.String,System.String,System.String,Windows.Storage.Streams.IRandomAccessStreamReference,System.String) ection_appendresultsuggestion.md)