EndDialog.EndParentDialogAsync 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.
Ends the parent dialog.
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
The DialogContext for the current turn of conversation.
- result
- Object
Optional, value returned from the previous dialog on the stack. The type of the value returned is dependent on the previous dialog.
- cancellationToken
- CancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
A Task representing the asynchronous operation.