FormBuilder<T> Class

Definition

Build a form by specifying messages, fields and confirmations via reflection or programatically.

public sealed class FormBuilder<T> : Microsoft.Bot.Builder.FormFlow.FormBuilderBase<T> where T : class
type FormBuilder<'T (requires 'T : null)> = class
    inherit FormBuilderBase<'T (requires 'T : null)>
Public NotInheritable Class FormBuilder(Of T)
Inherits FormBuilderBase(Of T)

Type Parameters

T

Form state class.

Inheritance
FormBuilder<T>

Remarks

Fields will be defined through reflection over the type T and attributes like DescribeAttribute, NumericAttribute, OptionalAttributePatternAttribute, PromptAttribute, TermsAttribute and TemplateAttribute.
For all of the attributes, reasonable defaults will be generated.

Constructors

FormBuilder<T>(Boolean)

Create a new form builder for building a form using reflection.

Fields

_form (Inherited from FormBuilderBase<T>)

Properties

Configuration (Inherited from FormBuilderBase<T>)

Methods

AddRemainingFields(IEnumerable<String>)
Build(Assembly, String)
Confirm(MessageDelegate<T>, ActiveDelegate<T>, IEnumerable<String>) (Inherited from FormBuilderBase<T>)
Confirm(PromptAttribute, ActiveDelegate<T>, IEnumerable<String>) (Inherited from FormBuilderBase<T>)
Confirm(String, ActiveDelegate<T>, IEnumerable<String>) (Inherited from FormBuilderBase<T>)
Field(IField<T>) (Inherited from FormBuilderBase<T>)
Field(String, ActiveDelegate<T>, ValidateAsyncDelegate<T>)
Field(String, PromptAttribute, ActiveDelegate<T>, ValidateAsyncDelegate<T>)
Field(String, String, ActiveDelegate<T>, ValidateAsyncDelegate<T>)
HasField(String) (Inherited from FormBuilderBase<T>)
Message(MessageDelegate<T>, ActiveDelegate<T>, IEnumerable<String>) (Inherited from FormBuilderBase<T>)
Message(PromptAttribute, ActiveDelegate<T>, IEnumerable<String>) (Inherited from FormBuilderBase<T>)
Message(String, ActiveDelegate<T>, IEnumerable<String>) (Inherited from FormBuilderBase<T>)
OnCompletion(OnCompletionAsyncDelegate<T>) (Inherited from FormBuilderBase<T>)
Prompter(PromptAsyncDelegate<T>) (Inherited from FormBuilderBase<T>)

Applies to