Share via


FormDialog.FromType<T>(FormOptions) Method

Definition

Create an IFormDialog<T> using the default BuildFormDelegate<T>.

public static Microsoft.Bot.Builder.FormFlow.IFormDialog<T> FromType<T> (Microsoft.Bot.Builder.FormFlow.FormOptions options = Microsoft.Bot.Builder.FormFlow.FormOptions.None) where T : class, new();
static member FromType : Microsoft.Bot.Builder.FormFlow.FormOptions -> Microsoft.Bot.Builder.FormFlow.IFormDialog<'T (requires 'T : null and 'T : (new : unit -> 'T))> (requires 'T : null and 'T : (new : unit -> 'T))
Public Shared Function FromType(Of T As {Class, New}) (Optional options As FormOptions = Microsoft.Bot.Builder.FormFlow.FormOptions.None) As IFormDialog(Of T)

Type Parameters

T

The form type.

Parameters

options
FormOptions

The form options.

Returns

The form dialog.

Applies to