Idioma

TeamsActivityHandler.OnTeamsFileConsentDeclineAsync Método

Definição

Invocado quando um cartão de consentimento de arquivo é recusado pelo usuário.

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

Parâmetros

turnContext
ITurnContext<IInvokeActivity>

Um objeto de contexto fortemente tipado para este turno.

fileConsentCardResponse
FileConsentCardResponse

A resposta que representa o valor da atividade de invocação enviada quando o utilizador recusa um cartão de consentimento de ficheiro.

cancellationToken
CancellationToken

Um token de cancelamento que pode ser usado por outros objetos ou threads para receber aviso de cancelamento.

Devoluções

Uma tarefa que representa o trabalho enfileirado para ser executado.

Aplica-se a