Language

FileConsentHandler Delegate

Definition

Function for handling file consent card activities.

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

fileConsentCardResponse
FileConsentValue

The response representing the value of the invoke activity sent when the user acts on a file consent card.

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