Sprache

WaterfallDialog.EndDialogAsync Methode

Definition

Wird aufgerufen, wenn das Dialogfeld beendet wird.

public override System.Threading.Tasks.Task EndDialogAsync(Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Builder.Dialogs.DialogInstance instance, Microsoft.Bot.Builder.Dialogs.DialogReason reason, System.Threading.CancellationToken cancellationToken = default);
override this.EndDialogAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Builder.Dialogs.DialogInstance * Microsoft.Bot.Builder.Dialogs.DialogReason * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overrides Function EndDialogAsync (turnContext As ITurnContext, instance As DialogInstance, reason As DialogReason, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameter

turnContext
ITurnContext

Kontext für die aktuelle Drehung der Unterhaltung.

instance
DialogInstance

Die Instanz des aktuellen Dialogfelds.

reason
DialogReason

Der Grund, warum das Dialogfeld beendet wird.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

Eine Aufgabe, die die auszuführende Arbeitswarteschlange darstellt.

Gilt für: