SearchPaneSuggestionsRequestedEventArgs.Request 属性

定义

获取一个 对象,该对象存储有关请求的建议和信息。

public:
 property SearchPaneSuggestionsRequest ^ Request { SearchPaneSuggestionsRequest ^ get(); };
/// [get: Windows.Foundation.Metadata.Deprecated("ISearchPaneSuggestionsRequestedEventArgs may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.ApplicationModel.Search.SearchContract)]
SearchPaneSuggestionsRequest Request();
/// [get: Windows.Foundation.Metadata.Deprecated("ISearchPaneSuggestionsRequestedEventArgs may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.ApplicationModel.Search.SearchContract")]
SearchPaneSuggestionsRequest Request();
public SearchPaneSuggestionsRequest Request { [Windows.Foundation.Metadata.Deprecated("ISearchPaneSuggestionsRequestedEventArgs may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.ApplicationModel.Search.SearchContract))] get; }
public SearchPaneSuggestionsRequest Request { [Windows.Foundation.Metadata.Deprecated("ISearchPaneSuggestionsRequestedEventArgs may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.ApplicationModel.Search.SearchContract")] get; }
var searchPaneSuggestionsRequest = searchPaneSuggestionsRequestedEventArgs.request;
Public ReadOnly Property Request As SearchPaneSuggestionsRequest

属性值

存储有关请求的建议和信息的 对象。

属性

注解

重要

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

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

搜索窗格最多可以显示 5 条建议。 此外,使用的每个分隔符将取代建议,并降低可以显示的建议数。

适用于

另请参阅