AdaptiveDialog.EndCurrentActionAsync(ActionContext, CancellationToken) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
如果有當前最多行動,則從給定 ActionContext 中移除。
protected System.Threading.Tasks.Task<bool> EndCurrentActionAsync(Microsoft.Bot.Builder.Dialogs.Adaptive.ActionContext actionContext, System.Threading.CancellationToken cancellationToken = default);
member this.EndCurrentActionAsync : Microsoft.Bot.Builder.Dialogs.Adaptive.ActionContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Protected Function EndCurrentActionAsync (actionContext As ActionContext, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)
參數
- actionContext
- ActionContext
目前交談回合的 ActionContext。
- cancellationToken
- CancellationToken
可選的,是可以被其他物件使用的 a CancellationToken 。
傳回
A Task 代表結果的布林指標。