SearchSuggestionsRequestDeferral Class

Definition

Enables the app to signal when it has finished populating a SearchSuggestionCollection object while handling the SuggestionsRequested event. Use a deferral if and only if your app needs to respond to a request for suggestions asynchronously.

public ref class SearchSuggestionsRequestDeferral sealed
class SearchSuggestionsRequestDeferral sealed
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class SearchSuggestionsRequestDeferral
Public NotInheritable Class SearchSuggestionsRequestDeferral
Inheritance
SearchSuggestionsRequestDeferral
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

Your app should respond asynchronously to a request for suggestions if fulfilling the request will take a significant amount of time, such as fetching suggestions from a web service.

Use the Complete method to signal when your app has fulfilled the request. Retrieve this object by calling the GetDeferral method while handling the SuggestionsRequested event.

Methods

Complete()

Signals that the app has finished populating a SearchSuggestionCollection object while handling the SuggestionsRequested event.

Applies to