TeamsInfo.CancelOperationAsync Method

Definition

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.

Applies to