Delen via


EndDialog.EndParentDialogAsync Methode

Definitie

Hiermee wordt het bovenliggende dialoogvenster beëindigd.

protected System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogTurnResult> EndParentDialogAsync (Microsoft.Bot.Builder.Dialogs.DialogContext dc, object result = default, System.Threading.CancellationToken cancellationToken = default);
member this.EndParentDialogAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogTurnResult>
Protected Function EndParentDialogAsync (dc As DialogContext, Optional result As Object = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DialogTurnResult)

Parameters

dc
DialogContext

De DialogContext voor de huidige wending van het gesprek.

result
Object

Optioneel, waarde die wordt geretourneerd uit het vorige dialoogvenster in de stack. Het type van de geretourneerde waarde is afhankelijk van het vorige dialoogvenster.

cancellationToken
CancellationToken

Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om een kennisgeving van annulering te ontvangen.

Retouren

Een Task die de asynchrone bewerking vertegenwoordigt.

Van toepassing op