Dela via


AdaptiveDialog.EndCurrentActionAsync(ActionContext, CancellationToken) Metod

Definition

Tar bort den aktuella mest åtgärden från angiven ActionContext om det finns några.

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)

Parametrar

actionContext
ActionContext

ActionContext för den aktuella konversationsvändningen.

cancellationToken
CancellationToken

Valfritt, en CancellationToken som kan användas av andra objekt.

Returer

En Task som representerar en boolesk indikator för resultatet.

Gäller för