Język

TeamsActivityHandler.OnTeamsFileConsentDeclineAsync Metoda

Definicja

Wywoływane, gdy karta zgody pliku jest odrzucana przez użytkownika.

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

Parametry

turnContext
ITurnContext<IInvokeActivity>

Silnie wpisany obiekt kontekstowy dla tej tury.

fileConsentCardResponse
FileConsentCardResponse

Odpowiedź reprezentująca wartość aktywności wywołanej wysyłanej, gdy użytkownik odrzuca kartę zgody na plik.

cancellationToken
CancellationToken

Token anulowania, który może być używany przez inne obiekty lub wątki do otrzymywania powiadomienia o anulowaniu.

Zwraca

Zadanie reprezentujące pracę w kolejce do wykonania.

Dotyczy