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