SearchPaneSuggestionsRequest.GetDeferral 方法

定义

检索一个 对象,该对象允许应用异步响应建议请求。

public:
 virtual SearchPaneSuggestionsRequestDeferral ^ GetDeferral() = GetDeferral;
/// [Windows.Foundation.Metadata.Deprecated("ISearchPaneSuggestionsRequest may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.ApplicationModel.Search.SearchContract)]
SearchPaneSuggestionsRequestDeferral GetDeferral();
/// [Windows.Foundation.Metadata.Deprecated("ISearchPaneSuggestionsRequest may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.ApplicationModel.Search.SearchContract")]
SearchPaneSuggestionsRequestDeferral GetDeferral();
[Windows.Foundation.Metadata.Deprecated("ISearchPaneSuggestionsRequest may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.ApplicationModel.Search.SearchContract))]
public SearchPaneSuggestionsRequestDeferral GetDeferral();
[Windows.Foundation.Metadata.Deprecated("ISearchPaneSuggestionsRequest may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.ApplicationModel.Search.SearchContract")]
public SearchPaneSuggestionsRequestDeferral GetDeferral();
function getDeferral()
Public Function GetDeferral () As SearchPaneSuggestionsRequestDeferral

返回

一个 对象,该对象允许应用在满足搜索建议请求时发出信号。

属性

注解

重要

若要在应用中实现Windows 10或更高版本的搜索,请使用 AutoSuggestBox。 有关详细信息 ,请参阅自动建议框

不应在 Windows 10 或更高版本的应用中使用 Windows.ApplicationModel.Search API (SearchPaneSearchContract) 或 SearchBox API。

如果满足该请求需要大量时间(例如从 Web 服务提取建议),应用应异步响应搜索建议请求。

使用 searchPaneSuggestionsRequestDeferral.complete 方法在应用满足请求时发出信号。

适用于

另请参阅