Share via


SearchSuggestionCollection.AppendSearchSeparator(String) Method

Definition

Appends a text label that is used to separate groups of suggestions in the search pane.

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)

Parameters

label
String

Platform::String

winrt::hstring

The text to use as a separator. This text should be descriptive of any suggestions that are appended after it.

Remarks

Important

To implement search in an app for Windows 10 or later, use AutoSuggestBox. See Auto-suggest box for more info.

You should not use Windows.ApplicationModel.Search APIs (SearchPane, SearchContract) or SearchBox APIs in apps for Windows 10 or later.

The search pane can display 5 suggestions, at most. Additionally, each separator you use takes the place of a suggestion and decreases the number of suggestions that you can display.

Applies to

See also