FormDialog.FromForm<T>(BuildFormDelegate<T>, FormOptions) 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.
Create an IFormDialog<T> using the BuildFormDelegate<T> parameter.
public static Microsoft.Bot.Builder.FormFlow.IFormDialog<T> FromForm<T> (Microsoft.Bot.Builder.FormFlow.BuildFormDelegate<T> buildForm, Microsoft.Bot.Builder.FormFlow.FormOptions options = Microsoft.Bot.Builder.FormFlow.FormOptions.None) where T : class, new();
static member FromForm : Microsoft.Bot.Builder.FormFlow.BuildFormDelegate<'T (requires 'T : null and 'T : (new : unit -> 'T))> * 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 FromForm(Of T As {Class, New}) (buildForm As BuildFormDelegate(Of T), Optional options As FormOptions = Microsoft.Bot.Builder.FormFlow.FormOptions.None) As IFormDialog(Of T)
Type Parameters
- T
The form type.
Parameters
- buildForm
- BuildFormDelegate<T>
The delegate to build the form.
- options
- FormOptions
The form options.
Returns
The form dialog.