AdaptiveDialog.EndCurrentActionAsync(ActionContext, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the current most action from the given ActionContext if there are any.
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)
Parameters
- actionContext
- ActionContext
The ActionContext for the current turn of conversation.
- cancellationToken
- CancellationToken
Optional, a CancellationToken that can be used by other objects.
Returns
A Task representing a boolean indicator for the result.