TeamsInfo.CancelOperationAsync 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.
Cancels a batch operation by its id.
public static System.Threading.Tasks.Task CancelOperationAsync (Microsoft.Bot.Builder.ITurnContext turnContext, string operationId, System.Threading.CancellationToken cancellationToken = default);
static member CancelOperationAsync : Microsoft.Bot.Builder.ITurnContext * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Shared Function CancelOperationAsync (turnContext As ITurnContext, operationId As String, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- turnContext
- ITurnContext
The turn context.
- operationId
- String
The id of the operation to cancel.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
A Task representing the asynchronous operation.