Field<T> Field<T> Field<T> Class

Definition

Base class with declarative implementation of IField.

public class Field<T> : Microsoft.Bot.Builder.FormFlow.Advanced.IField<T>, Microsoft.Bot.Builder.FormFlow.Advanced.IFieldPrompt<T>, Microsoft.Bot.Builder.FormFlow.Advanced.IFieldState<T> where T : class
type Field<'T (requires 'T : null)> = class
    interface IField<'T (requires 'T : null)>
    interface IFieldState<'T (requires 'T : null)>
    interface IFieldDescription
    interface IFieldPrompt<'T (requires 'T : null)>
    interface IFieldResources
Public Class Field(Of T)
Implements IField(Of T), IFieldPrompt(Of T), IFieldState(Of T)
Type Parameters
T

Underlying form state.

Inheritance
Field<T>Field<T>Field<T>
Derived
Implements

Constructors

Field<T>(String, FieldRole) Field<T>(String, FieldRole) Field<T>(String, FieldRole)

Construct field.

Fields

_allowsMultiple _allowsMultiple _allowsMultiple
_buildPrompts _buildPrompts _buildPrompts
_condition _condition _condition
_define _define _define
_dependencies _dependencies _dependencies
_description _description _description
_form _form _form
_help _help _help
_isNullable _isNullable _isNullable
_keepZero _keepZero _keepZero
_limited _limited _limited
_max _max _max
_min _min _min
_name _name _name
_next _next _next
_optional _optional _optional
_pattern _pattern _pattern
_prompt _prompt _prompt
_promptDefinition _promptDefinition _promptDefinition
_promptSet _promptSet _promptSet
_recognizer _recognizer _recognizer
_role _role _role
_templates _templates _templates
_terms _terms _terms
_type _type _type
_validate _validate _validate
_valueDescriptions _valueDescriptions _valueDescriptions
_valueTerms _valueTerms _valueTerms

Properties

AllowDefault AllowDefault AllowDefault
AllowNumbers AllowNumbers AllowNumbers
AllowsMultiple AllowsMultiple AllowsMultiple
Dependencies Dependencies Dependencies
FieldDescription FieldDescription FieldDescription
FieldTerms FieldTerms FieldTerms
Form Form Form
Help Help Help
IsNullable IsNullable IsNullable
Name Name Name
Optional Optional Optional
Pattern Pattern Pattern
Prompt Prompt Prompt
Role Role Role
Type Type Type
ValueDescriptions ValueDescriptions ValueDescriptions
Values Values Values

Methods

Active(T) Active(T) Active(T)
AddDescription(Object, DescribeAttribute) AddDescription(Object, DescribeAttribute) AddDescription(Object, DescribeAttribute)

Adds a full description for a value.

AddDescription(Object, String, String, String) AddDescription(Object, String, String, String) AddDescription(Object, String, String, String)

Adds a description for a value.

AddTemplate(TemplateAttribute) AddTemplate(TemplateAttribute) AddTemplate(TemplateAttribute)
AddTerms(Object, TermsAttribute) AddTerms(Object, TermsAttribute) AddTerms(Object, TermsAttribute)

Adds terms for a value.

AddTerms(Object, String[]) AddTerms(Object, String[]) AddTerms(Object, String[])

Adds terms for a value.

DefineAsync(T) DefineAsync(T) DefineAsync(T)
DefinePrompt() DefinePrompt() DefinePrompt()
DefineRecognizer() DefineRecognizer() DefineRecognizer()
GetValue(T) GetValue(T) GetValue(T)
IsUnknown(T) IsUnknown(T) IsUnknown(T)
Limits(Double, Double) Limits(Double, Double) Limits(Double, Double)
Localize() Localize() Localize()
Next(Object, T) Next(Object, T) Next(Object, T)
RemoveValue(Object) RemoveValue(Object) RemoveValue(Object)

Removes the description and terms associated with a value.

RemoveValues() RemoveValues() RemoveValues()

Removes all values and their associated descriptions and terms.

ReplaceTemplate(TemplateAttribute) ReplaceTemplate(TemplateAttribute) ReplaceTemplate(TemplateAttribute)

Replace a template in the field.

SaveResources() SaveResources() SaveResources()
SetActive(ActiveDelegate<T>) SetActive(ActiveDelegate<T>) SetActive(ActiveDelegate<T>)

Define a delegate for checking state to see if field applies.

SetAllowsMultiple(Boolean) SetAllowsMultiple(Boolean) SetAllowsMultiple(Boolean)

Sets whether or not multiple values are allowed.

SetDefine(DefineAsyncDelegate<T>) SetDefine(DefineAsyncDelegate<T>) SetDefine(DefineAsyncDelegate<T>)

Define a delegate for dynamically defining field.

SetDependencies(String[]) SetDependencies(String[]) SetDependencies(String[])

Define the fields this field depends on.

SetFieldDescription(String) SetFieldDescription(String) SetFieldDescription(String)

Set the field description.

SetFieldDescription(DescribeAttribute) SetFieldDescription(DescribeAttribute) SetFieldDescription(DescribeAttribute)

Set the full field description.

SetFieldTerms(String[]) SetFieldTerms(String[]) SetFieldTerms(String[])

Set the terms associated with the field.

SetIsNullable(Boolean) SetIsNullable(Boolean) SetIsNullable(Boolean)

Set whether or not field is nullable.

SetLimits(Double, Double) SetLimits(Double, Double) SetLimits(Double, Double)

Set numeric limits.

SetLimits(Double, Double, Boolean) SetLimits(Double, Double, Boolean) SetLimits(Double, Double, Boolean)
SetNext(NextDelegate<T>) SetNext(NextDelegate<T>) SetNext(NextDelegate<T>)

Delegate for deciding on the next form step to execute.

SetOptional(Boolean) SetOptional(Boolean) SetOptional(Boolean)

Set whether or not a field is optional.

SetPattern(String) SetPattern(String) SetPattern(String)

Regular expression for validating strings.

SetPrompt(PromptAttribute) SetPrompt(PromptAttribute) SetPrompt(PromptAttribute)

Sets the field prompt.

SetRecognizer(IRecognize<T>) SetRecognizer(IRecognize<T>) SetRecognizer(IRecognize<T>)

Sets the recognizer for the field.

SetType(Type) SetType(Type) SetType(Type)

Sets the type of the underlying field state.

SetUnknown(T) SetUnknown(T) SetUnknown(T)
SetValidate(ValidateAsyncDelegate<T>) SetValidate(ValidateAsyncDelegate<T>) SetValidate(ValidateAsyncDelegate<T>)

Set the field validation.

SetValue(T, Object) SetValue(T, Object) SetValue(T, Object)
Template(TemplateUsage) Template(TemplateUsage) Template(TemplateUsage)
Terms(Object) Terms(Object) Terms(Object)
ValidateAsync(T, Object) ValidateAsync(T, Object) ValidateAsync(T, Object)
ValueDescription(Object) ValueDescription(Object) ValueDescription(Object)

Applies to