Jaa


TeamsActivityHandler.OnTeamsMessageSoftDeleteAsync Method

Definition

Invoked when a soft delete message event activity is received.

protected virtual System.Threading.Tasks.Task OnTeamsMessageSoftDeleteAsync (Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IMessageDeleteActivity> turnContext, System.Threading.CancellationToken cancellationToken);
abstract member OnTeamsMessageSoftDeleteAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IMessageDeleteActivity> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnTeamsMessageSoftDeleteAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IMessageDeleteActivity> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function OnTeamsMessageSoftDeleteAsync (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.

Applies to