Language

MessagePreviewSendHandler Delegate

Definition

Function for handling Message Extension message preview send events.

public delegate System.Threading.Tasks.Task MessagePreviewSendHandler(ITeamsTurnContext turnContext, ITurnState turnState, IActivity activityPreview, CancellationToken cancellationToken);
type MessagePreviewSendHandler = delegate of ITeamsTurnContext * ITurnState * IActivity * CancellationToken -> Task
Public Delegate Function MessagePreviewSendHandler(turnContext As ITeamsTurnContext, turnState As ITurnState, activityPreview As IActivity, cancellationToken As CancellationToken) As Task 

Parameters

turnContext
ITeamsTurnContext

The context for the current conversation turn.

turnState
ITurnState

The state object that stores arbitrary data for this turn.

activityPreview
IActivity

The activity that's being previewed by the user.

cancellationToken
CancellationToken

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

Return Value

A task that represents the work queued to execute.

Applies to