DelegatingTurnContext<T>.OnDeleteActivity(DeleteActivityHandler) 方法

定义

添加用于删除活动操作的响应处理程序。

public Microsoft.Bot.Builder.ITurnContext OnDeleteActivity (Microsoft.Bot.Builder.DeleteActivityHandler handler);
abstract member OnDeleteActivity : Microsoft.Bot.Builder.DeleteActivityHandler -> Microsoft.Bot.Builder.ITurnContext
override this.OnDeleteActivity : Microsoft.Bot.Builder.DeleteActivityHandler -> Microsoft.Bot.Builder.ITurnContext
Public Function OnDeleteActivity (handler As DeleteActivityHandler) As ITurnContext

参数

handler
DeleteActivityHandler

要添加到上下文对象的处理程序。

返回

更新的上下文对象。

实现

注解

调用上下文的 DeleteActivityAsync(String, CancellationToken) 时,适配器会按照将处理程序添加到上下文对象的顺序调用已注册的处理程序。

适用于

另请参阅