Share via


Chain.From<T>(Func<IDialog<T>>) Method

Definition

Construct a IDialog<TResult> that will make a new copy of another IDialog<TResult> when started.

public static Microsoft.Bot.Builder.Dialogs.IDialog<T> From<T> (Func<Microsoft.Bot.Builder.Dialogs.IDialog<T>> MakeDialog);
static member From : Func<Microsoft.Bot.Builder.Dialogs.IDialog<'T>> -> Microsoft.Bot.Builder.Dialogs.IDialog<'T>
Public Function From(Of T) (MakeDialog As Func(Of IDialog(Of T))) As IDialog(Of T)

Type Parameters

T

The type of the dialog.

Parameters

MakeDialog
Func<IDialog<T>>

The dialog factory method.

Returns

IDialog<T>

The new dialog.

Applies to