Share via


ConversationsExtensions.DeleteActivityAsync Method

Definition

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

Parameters

operations
IConversations

The operations group for this extension method.

conversationId
String

Conversation ID.

activityId
String

activityId to delete.

cancellationToken
CancellationToken

The cancellation token.

Returns

A Task representing the asynchronous operation.

Remarks

Delete an existing activity.

Some channels allow you to delete an existing activity, and if successful this method will remove the specified activity.

Applies to