共用方式為


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。 如需詳細資訊,請參閱 自動建議方塊

您不應該在 app 中使用Windows.ApplicationModel.Search API (SearchPaneSearchContract) 或SearchBox API,以進行Windows 10或更新版本。

搜尋窗格最多可以顯示 5 個建議。 此外,您使用的每個分隔符號都會取代建議,並降低您可以顯示的建議數目。

適用於

另請參閱