Language

CardButtonClickedHandler<TData> Delegate

Definition

Function for handling Message Extension clicking card button events.

public delegate System.Threading.Tasks.Task CardButtonClickedHandler<TData>(ITeamsTurnContext turnContext, ITurnState turnState, TData cardData, CancellationToken cancellationToken);
type CardButtonClickedHandler<'Data> = delegate of ITeamsTurnContext * ITurnState * 'Data * CancellationToken -> Task
Public Delegate Function CardButtonClickedHandler(Of TData)(turnContext As ITeamsTurnContext, turnState As ITurnState, cardData As TData, cancellationToken As CancellationToken) As Task 

Type Parameters

TData

The type of the cardData argument.

Parameters

turnContext
ITeamsTurnContext

The context for the current conversation turn.

turnState
ITurnState

The state object that stores arbitrary data for this turn.

cardData
TData

The card data.

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