SearchPaneSuggestionsRequest class

Applies to Windows only

Stores suggestions and information about the request for suggestions.

Syntax


Public NotInheritable Class SearchPaneSuggestionsRequest

Attributes

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

Members

The SearchPaneSuggestionsRequest class has these types of members:

Methods

The SearchPaneSuggestionsRequest class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
GetDeferral Retrieves an object that lets an app respond to a request for suggestions asynchronously.

 

Properties

The SearchPaneSuggestionsRequest class has these properties.

PropertyAccess typeDescription

IsCanceled

Read-onlyIndicates whether the request for suggestions to display is canceled.

SearchSuggestionCollection

Read-onlyThe suggestions to display in the search pane for the current query. Apps provide suggestions to display by appending them to this searchSuggestionCollection object.

 

Remarks

If your app provides its own suggestions to display in the search pane, use the searchPaneSuggestionsRequest.searchSuggestionCollection property to add your app's suggestions to the collection of suggestions to display.

The search pane can display 5 suggestions, at most. Additionally, each separator you use takes the place of a suggestion and lowers the number of suggestions that you can display.

Examples

The Search contract sample demonstrates how to respond to a suggestionsrequested event, including how to access the searchPaneSuggestionsRequest.

No code example is currently available or this language may not be supported.

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
Search contract sample
SearchPane.SuggestionsRequested event
SearchPaneSuggestionsRequestedEventArgs class
SearchPaneSuggestionsRequestedEventArgs.Request property

 

 

Show:
© 2015 Microsoft