Partager via


FormDialog.FromForm<T>(BuildFormDelegate<T>, FormOptions) Méthode

Définition

Créez un à l’aide IFormDialog<T> du BuildFormDelegate<T> paramètre .

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)

Paramètres de type

T

Type de formulaire.

Paramètres

buildForm
BuildFormDelegate<T>

Délégué pour générer le formulaire.

options
FormOptions

Options de formulaire.

Retours

Boîte de dialogue de formulaire.

S’applique à