Sprog

MessagePreviewSendHandler Delegate

Definition

Function for handling Message Extension message preview send events.

public delegate System.Threading.Tasks.Task MessagePreviewSendHandler(ITeamsTurnContext turnContext, ITurnState turnState, MessageExtensionActivityPreview activityPreview, CancellationToken cancellationToken);
type MessagePreviewSendHandler = delegate of ITeamsTurnContext * ITurnState * MessageExtensionActivityPreview * CancellationToken -> Task
Public Delegate Function MessagePreviewSendHandler(turnContext As ITeamsTurnContext, turnState As ITurnState, activityPreview As MessageExtensionActivityPreview, 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
MessageExtensionActivityPreview

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