Share via


TeamsOperationsExtensions.CancelOperationAsync Method

Definition

Cancels a batch operation by its id.

public static System.Threading.Tasks.Task CancelOperationAsync (this Microsoft.Bot.Connector.Teams.ITeamsOperations operations, string operationId, System.Threading.CancellationToken cancellationToken = default);
static member CancelOperationAsync : Microsoft.Bot.Connector.Teams.ITeamsOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function CancelOperationAsync (operations As ITeamsOperations, operationId As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

operations
ITeamsOperations

The operations group for this extension method.

operationId
String

The id of the operation to cancel.

cancellationToken
CancellationToken

The cancellation token.

Returns

A Task representing the asynchronous operation.

Applies to