Share via


BotFrameworkAdapter.DeleteActivityAsync Method

Definition

Deletes an existing activity in the conversation.

public override System.Threading.Tasks.Task DeleteActivityAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Schema.ConversationReference reference, System.Threading.CancellationToken cancellationToken);
override this.DeleteActivityAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Schema.ConversationReference * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overrides Function DeleteActivityAsync (turnContext As ITurnContext, reference As ConversationReference, cancellationToken As CancellationToken) As Task

Parameters

turnContext
ITurnContext

The context object for the turn.

reference
ConversationReference

Conversation reference for the activity to delete.

cancellationToken
CancellationToken

Cancellation token.

Returns

A task that represents the work queued to execute.

Remarks

The ActivityId of the conversation reference identifies the activity to delete.

Applies to

See also