Context. Replace Dialog Async(String, Object, CancellationToken) Method
Starts a new dialog and replaces on the stack the currently active dialog with the new one. This is particularly useful for creating loops or redirecting to another dialog.
public System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogTurnResult> ReplaceDialogAsync (string dialogId, object options = default, System.Threading.CancellationToken cancellationToken = default);
member this.ReplaceDialogAsync : string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogTurnResult>
Public Function ReplaceDialogAsync (dialogId As String, Optional options As Object = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DialogTurnResult)
ID of the new dialog to start.
Optional, information to pass to the dialog being started.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
A task that represents the work queued to execute.
If the task is successful, the result indicates whether the dialog is still
active after the turn has been processed by the dialog.