FormBuilder<T> FormBuilder<T> 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

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) FormBuilder<T>(Boolean) FormBuilder<T>(Boolean)

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

Methods

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

Fields

_form _form _form Inherited from FormBuilderBase<T>

Properties

Configuration Configuration Configuration Inherited from FormBuilderBase<T>

Applies to