語言

TeamsActivityHandler.OnTeamsFileConsentDeclineAsync 方法

定義

當使用者拒絕檔案同意卡片時叫用。

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

參數

turnContext
ITurnContext<IInvokeActivity>

本回合的強型態上下文物件。

fileConsentCardResponse
FileConsentCardResponse

回應,表示當使用者拒絕檔案同意卡片時所傳送的叫用活動值。

cancellationToken
CancellationToken

一種可被其他物件或執行緒用來接收取消通知的取消標記。

傳回

工作,表示要執行的工作佇列。

適用於