Jaa


TeamsActivityHandler.OnTeamsFileConsentAcceptAsync Method

Definition

Invoked when a file consent card is accepted by the user.

protected virtual System.Threading.Tasks.Task OnTeamsFileConsentAcceptAsync (Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> turnContext, Microsoft.Bot.Schema.Teams.FileConsentCardResponse fileConsentCardResponse, System.Threading.CancellationToken cancellationToken);
abstract member OnTeamsFileConsentAcceptAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Microsoft.Bot.Schema.Teams.FileConsentCardResponse * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnTeamsFileConsentAcceptAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Microsoft.Bot.Schema.Teams.FileConsentCardResponse * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function OnTeamsFileConsentAcceptAsync (turnContext As ITurnContext(Of IInvokeActivity), fileConsentCardResponse As FileConsentCardResponse, cancellationToken As CancellationToken) As Task

Parameters

turnContext
ITurnContext<IInvokeActivity>

A strongly-typed context object for this turn.

fileConsentCardResponse
FileConsentCardResponse

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

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