Language

TeamsBotAdapter.DeleteActivityAsync Method

Definition

Deletes an activity from 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 turn context containing the activity information. Cannot be null.

reference
ConversationReference

The conversation reference identifying the activity to delete.

cancellationToken
CancellationToken

A cancellation token that can be used to cancel the asynchronous operation.

Returns

A task that represents the asynchronous delete operation.

Applies to