TeamsActivityHandler.OnTeamsFileConsentAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從連接器收到檔案同意卡片活動時叫用。
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)
參數
- turnContext
- ITurnContext<IInvokeActivity>
這個回合的強型別內容物件。
- fileConsentCardResponse
- FileConsentCardResponse
回應,表示當使用者對檔案同意卡片採取動作時所傳送的叫用活動值。
- cancellationToken
- CancellationToken
取消語彙基元,可由其他物件或執行緒用來接收取消通知。
傳回
InvokeResponse,視檔案同意卡的動作而定。