Jaa


TeamsActivityHandler.OnTeamsFileConsentDeclineAsync Method

Definition

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

protected virtual System.Threading.Tasks.Task OnTeamsFileConsentDeclineAsync (Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> turnContext, Microsoft.Bot.Schema.Teams.FileConsentCardResponse fileConsentCardResponse, System.Threading.CancellationToken cancellationToken);
abstract member OnTeamsFileConsentDeclineAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Microsoft.Bot.Schema.Teams.FileConsentCardResponse * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnTeamsFileConsentDeclineAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Microsoft.Bot.Schema.Teams.FileConsentCardResponse * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function OnTeamsFileConsentDeclineAsync (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 declines 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