IDialogStack.Forward<R,T> Method

Definition

Call a child dialog, add it to the top of the stack and post the item to the child dialog.

public System.Threading.Tasks.Task Forward<R,T> (Microsoft.Bot.Builder.Dialogs.IDialog<R> child, Microsoft.Bot.Builder.Dialogs.ResumeAfter<R> resume, T item, System.Threading.CancellationToken token);
abstract member Forward : Microsoft.Bot.Builder.Dialogs.IDialog<'R> * Microsoft.Bot.Builder.Dialogs.ResumeAfter<'R> * 'T * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function Forward(Of R, T) (child As IDialog(Of R), resume As ResumeAfter(Of R), item As T, token As CancellationToken) As Task

Type Parameters

R

The type of result expected from the child dialog.

T

The type of the item posted to child dialog.

Parameters

child
IDialog<R>

The child dialog.

resume
ResumeAfter<R>

The method to resume when the child dialog has completed.

item
T

The item that will be posted to child dialog.

token
CancellationToken

A cancellation token.

Returns

A task representing the Forward operation.

Applies to