IQueryExecutionService.SubscribeQueryResultsAsync 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.
Subscribes query results, and receives updates when the result is changed.
public System.Threading.Tasks.Task<IDisposable> SubscribeQueryResultsAsync (string query, IObserver<string> resultsReceiver, System.Threading.CancellationToken cancellationToken = default);
abstract member SubscribeQueryResultsAsync : string * IObserver<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<IDisposable>
Public Function SubscribeQueryResultsAsync (query As String, resultsReceiver As IObserver(Of String), Optional cancellationToken As CancellationToken = Nothing) As Task(Of IDisposable)
Parameters
- query
- String
The Query string.
- cancellationToken
- CancellationToken
A cancellation token.
Returns
A disposable subscription, which can be disposed to stop receiving further data.