GoogleConnector.SearchAsync<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Execute a web search engine search.
public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<T>> SearchAsync<T>(string query, int count, int offset, System.Threading.CancellationToken cancellationToken);
abstract member SearchAsync : string * int * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<'T>>
override this.SearchAsync : string * int * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<'T>>
Public Function SearchAsync(Of T) (query As String, count As Integer, offset As Integer, cancellationToken As CancellationToken) As Task(Of IEnumerable(Of T))
Type Parameters
- T
Parameters
- query
- String
Query to search.
- count
- Int32
Number of results.
- offset
- Int32
Number of results to skip.
- cancellationToken
- CancellationToken
The CancellationToken to monitor for cancellation requests. The default is None.
Returns
First snippet returned from search.