TeamsActivityHandler.OnTeamsFileConsentAsync 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 viene ricevuta un'attività della scheda di consenso file dal connettore.
protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Builder.InvokeResponse> OnTeamsFileConsentAsync(Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> turnContext, Microsoft.Bot.Schema.Teams.FileConsentCardResponse fileConsentCardResponse, System.Threading.CancellationToken cancellationToken);
abstract member OnTeamsFileConsentAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Microsoft.Bot.Schema.Teams.FileConsentCardResponse * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.InvokeResponse>
override this.OnTeamsFileConsentAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Microsoft.Bot.Schema.Teams.FileConsentCardResponse * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.InvokeResponse>
Protected Overridable Function OnTeamsFileConsentAsync (turnContext As ITurnContext(Of IInvokeActivity), fileConsentCardResponse As FileConsentCardResponse, cancellationToken As CancellationToken) As Task(Of InvokeResponse)
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 agisce su 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
InvokeResponse a seconda dell'azione della scheda di consenso del file.