Share via


SearchSuggestionCollection.AppendQuerySuggestions メソッド

定義

検索ウィンドウの検索候補の一覧にクエリ候補の一覧を追加します。

public:
 virtual void AppendQuerySuggestions(IIterable<Platform::String ^> ^ suggestions) = AppendQuerySuggestions;
void AppendQuerySuggestions(IIterable<winrt::hstring> const& suggestions);
public void AppendQuerySuggestions(IEnumerable<string> suggestions);
function appendQuerySuggestions(suggestions)
Public Sub AppendQuerySuggestions (suggestions As IEnumerable(Of String))

パラメーター

suggestions

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

クエリ候補の一覧。

注釈

重要

Windows 10以降の検索をアプリに実装するには、AutoSuggestBox を使用します。 詳細については、「 自動提案ボックス 」を参照してください。

Windows 10 以降のアプリでは、Windows.ApplicationModel.Search API (SearchPaneSearchContract) または SearchBox API を使用しないでください。

クエリ候補は、ユーザーが自分のクエリとして選択できる提案です。

検索ウィンドウには、最大で 5 つの候補を表示できます。 さらに、使用する各区切り記号は候補の代わりに使用され、表示できる候補の数が減ります。

適用対象

こちらもご覧ください