Jaa


TeamsActivityHandler.OnMessageDeleteActivityAsync Method

Definition

Invoked when an message delete activity is received. MessageDelete activities, such as the conversational logic.

protected override System.Threading.Tasks.Task OnMessageDeleteActivityAsync (Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IMessageDeleteActivity> turnContext, System.Threading.CancellationToken cancellationToken);
override this.OnMessageDeleteActivityAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IMessageDeleteActivity> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overrides Function OnMessageDeleteActivityAsync (turnContext As ITurnContext(Of IMessageDeleteActivity), cancellationToken As CancellationToken) As Task

Parameters

turnContext
ITurnContext<IMessageDeleteActivity>

A strongly-typed context object for this turn.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

A task that represents the work queued to execute.

Remarks

In a derived class, override this method to add logic that applies to all message update activities.

Applies to