TeamsActivityHandler.OnTeamsFileConsentDeclineAsync Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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.