Dela via


TeamsInfo.CancelOperationAsync Metod

Definition

Avbryter en batchåtgärd med dess 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

Parametrar

turnContext
ITurnContext

Turkontexten.

operationId
String

ID:t för åtgärden som ska avbrytas.

cancellationToken
CancellationToken

Annulleringstoken.

Returer

En Task som representerar den asynkrona åtgärden.

Gäller för