Show / Hide Table of Contents

Method SearchAsync

| Edit this page View Source

SearchAsync(string, CancellationToken)

Gets a list of search results for the given query.

Declaration
Task<IList<SearchResult>> SearchAsync(string queryString, CancellationToken cancellationToken)
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.

| Edit this page View Source

SearchAsync(SearchSuggestion, CancellationToken)

Gets a list of search results for the given suggestions.

Declaration
Task<IList<SearchResult>> SearchAsync(SearchSuggestion suggestion, CancellationToken cancellationToken)
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.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX