Share via


SearchSuggestionCollection.AppendSearchSeparator(String) 方法

定義

附加用來分隔搜尋窗格中建議群組的文字標籤。

public:
 virtual void AppendSearchSeparator(Platform::String ^ label) = AppendSearchSeparator;
void AppendSearchSeparator(winrt::hstring const& label);
public void AppendSearchSeparator(string label);
function appendSearchSeparator(label)
Public Sub AppendSearchSeparator (label As String)

參數

label
String

Platform::String

winrt::hstring

要當做分隔符號使用的文字。 此文字應該描述附加之後的任何建議。

備註

重要

若要在應用程式中實作Windows 10或更新版本的搜尋,請使用AutoSuggestBox。 如需詳細資訊 ,請參閱自動建議方塊

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

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

適用於

另請參閱