TeamsInfo.CancelOperationAsync 方法

定义

按其 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

参数

turnContext
ITurnContext

轮次上下文。

operationId
String

要取消的操作的 ID。

cancellationToken
CancellationToken

取消令牌。

返回

表示异步操作的 Task

适用于