Show / Hide Table of Contents

Method SuggestAsync

| Edit this page View Source

SuggestAsync(string, CancellationToken)

Gets a list of suggestions for the given query.

Declaration
public virtual Task<IList<SearchSuggestion>> SuggestAsync(string queryString, CancellationToken cancellationToken = default)
Parameters
Type Name Description
string queryString

Text of the query.

CancellationToken cancellationToken

Token used to cancel requests (e.g. because the search text has changed).

Returns
Type Description
Task<IList<SearchSuggestion>>

Task returning a list of suggestions.

Implements
ISearchSource.SuggestAsync(string, CancellationToken)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX