IDialogStack.Forward<R,T> 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.
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.