Lingua

TeamsActivityHandler.OnTeamsFileConsentDeclineAsync Metodo

Definizione

Richiamato quando una scheda di consenso file viene rifiutata dall'utente.

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

Parametri

turnContext
ITurnContext<IInvokeActivity>

Un oggetto contestuale fortemente tipizzato per questa svolta.

fileConsentCardResponse
FileConsentCardResponse

Risposta che rappresenta il valore dell'attività invoke inviata quando l'utente rifiuta una scheda di consenso file.

cancellationToken
CancellationToken

Token di annullamento che può essere utilizzato da altri oggetti o thread per ricevere un avviso di annullamento.

Valori restituiti

Attività che rappresenta il lavoro in coda da eseguire.

Si applica a