ConversationsExtensions.DeleteActivityAsync 方法

定义

DeleteActivity。

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

参数

operations
IConversations

此扩展方法的操作组。

conversationId
String

对话 ID。

activityId
String

要删除的 activityId。

cancellationToken
CancellationToken

取消标记。

返回

表示异步操作的任务。

注解

删除现有活动。

某些通道允许删除现有活动,如果成功,此方法将删除指定的活动。

适用于