Show / Hide Table of Contents

Method SearchAsync

| Edit this page View Source

SearchAsync(SearchSuggestion, CancellationToken)

Gets a list of search results for the given suggestions.

Declaration
public virtual Task<IList<SearchResult>> SearchAsync(SearchSuggestion suggestion, CancellationToken cancellationToken = default)
Parameters
Type Name Description
SearchSuggestion suggestion

Suggestion to use for the search.

CancellationToken cancellationToken

Token used to cancel searches.

Returns
Type Description
Task<IList<SearchResult>>

Task returning a list of results.

Implements
ISearchSource.SearchAsync(SearchSuggestion, CancellationToken)
| Edit this page View Source

SearchAsync(string, CancellationToken)

Gets a list of search results for the given query.

Declaration
public virtual Task<IList<SearchResult>> SearchAsync(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 was changed or canceled).

Returns
Type Description
Task<IList<SearchResult>>

Task returning list of search results.

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