TeamsActivityHandler.OnTeamsFileConsentAcceptAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當使用者接受檔案同意卡片時叫用。
protected virtual System.Threading.Tasks.Task OnTeamsFileConsentAcceptAsync (Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> turnContext, Microsoft.Bot.Schema.Teams.FileConsentCardResponse fileConsentCardResponse, System.Threading.CancellationToken cancellationToken);
abstract member OnTeamsFileConsentAcceptAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Microsoft.Bot.Schema.Teams.FileConsentCardResponse * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnTeamsFileConsentAcceptAsync : Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IInvokeActivity> * Microsoft.Bot.Schema.Teams.FileConsentCardResponse * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function OnTeamsFileConsentAcceptAsync (turnContext As ITurnContext(Of IInvokeActivity), fileConsentCardResponse As FileConsentCardResponse, cancellationToken As CancellationToken) As Task
參數
- turnContext
- ITurnContext<IInvokeActivity>
這個回合的強型別內容物件。
- fileConsentCardResponse
- FileConsentCardResponse
回應,表示使用者接受檔案同意卡片時所傳送之叫用活動的值。
- cancellationToken
- CancellationToken
取消語彙基元,可由其他物件或執行緒用來接收取消通知。
傳回
工作,表示要執行的工作已排入佇列。