TeamsActivityHandler.OnTeamsMessageSoftDeleteAsync 方法

定义

收到软删除消息事件活动时调用。

protected virtual System.Threading.Tasks.Task OnTeamsMessageSoftDeleteAsync (Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IMessageDeleteActivity> turnContext, System.Threading.CancellationToken cancellationToken);
abstract member OnTeamsMessageSoftDeleteAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IMessageDeleteActivity> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnTeamsMessageSoftDeleteAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IMessageDeleteActivity> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function OnTeamsMessageSoftDeleteAsync (turnContext As ITurnContext(Of IMessageDeleteActivity), cancellationToken As CancellationToken) As Task

参数

turnContext
ITurnContext<IMessageDeleteActivity>

此轮次的强类型上下文对象。

cancellationToken
CancellationToken

其他对象或线程可以使用的取消令牌来接收取消通知。

返回

表示要执行的工作的任务。

适用于