IQueryExecutionService.QueryAsync(String, CancellationToken) 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.
Starts a query and receive results asynchronously.
public System.Collections.Generic.IAsyncEnumerable<string> QueryAsync (string query, System.Threading.CancellationToken cancellationToken = default);
abstract member QueryAsync : string * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<string>
Public Function QueryAsync (query As String, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of String)
Parameters
- query
- String
The Query string.
- cancellationToken
- CancellationToken
A cancellation token.