Method SearchAsync
| Edit this page View SourceSearchAsync(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
| Edit this page View SourceSearchAsync(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. |