IFormBuilder<T>.Field 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.
Overloads
Field(IField<T>) |
Derfine a field step by supplying your own field definition. |
Field(String, ActiveDelegate<T>, ValidateAsyncDelegate<T>) |
Define a step for filling in a particular value in the form state. |
Field(String, PromptAttribute, ActiveDelegate<T>, ValidateAsyncDelegate<T>) |
Define a step for filling in a particular value in the form state. |
Field(String, String, ActiveDelegate<T>, ValidateAsyncDelegate<T>) |
Define a step for filling in a particular value in the form state. |
Field(IField<T>)
Derfine a field step by supplying your own field definition.
public Microsoft.Bot.Builder.FormFlow.IFormBuilder<T> Field (Microsoft.Bot.Builder.FormFlow.Advanced.IField<T> field);
abstract member Field : Microsoft.Bot.Builder.FormFlow.Advanced.IField<'T (requires 'T : null)> -> Microsoft.Bot.Builder.FormFlow.IFormBuilder<'T (requires 'T : null)>
Public Function Field (field As IField(Of T)) As IFormBuilder(Of T)
Parameters
- field
- IField<T>
Field definition to use.
Returns
Modified IFormBuilder.
Remarks
You can provide your own implementation of IField<T> or you can use the Field<T> class to provide fluent values, FieldReflector<T> to use reflection or Json.FieldJson to use JSON Schema.
Applies to
Field(String, ActiveDelegate<T>, ValidateAsyncDelegate<T>)
Define a step for filling in a particular value in the form state.
public Microsoft.Bot.Builder.FormFlow.IFormBuilder<T> Field (string name, Microsoft.Bot.Builder.FormFlow.ActiveDelegate<T> active = default, Microsoft.Bot.Builder.FormFlow.ValidateAsyncDelegate<T> validate = default);
abstract member Field : string * Microsoft.Bot.Builder.FormFlow.ActiveDelegate<'T (requires 'T : null)> * Microsoft.Bot.Builder.FormFlow.ValidateAsyncDelegate<'T (requires 'T : null)> -> Microsoft.Bot.Builder.FormFlow.IFormBuilder<'T (requires 'T : null)>
Public Function Field (name As String, Optional active As ActiveDelegate(Of T) = Nothing, Optional validate As ValidateAsyncDelegate(Of T) = Nothing) As IFormBuilder(Of T)
Parameters
- name
- String
Path in the form state to the value being filled in.
- active
- ActiveDelegate<T>
Delegate to test form state to see if step is active.
- validate
- ValidateAsyncDelegate<T>
Delegate to validate the field value.
Returns
Modified IFormBuilder.
Applies to
Field(String, PromptAttribute, ActiveDelegate<T>, ValidateAsyncDelegate<T>)
Define a step for filling in a particular value in the form state.
public Microsoft.Bot.Builder.FormFlow.IFormBuilder<T> Field (string name, Microsoft.Bot.Builder.FormFlow.PromptAttribute prompt, Microsoft.Bot.Builder.FormFlow.ActiveDelegate<T> active = default, Microsoft.Bot.Builder.FormFlow.ValidateAsyncDelegate<T> validate = default);
abstract member Field : string * Microsoft.Bot.Builder.FormFlow.PromptAttribute * Microsoft.Bot.Builder.FormFlow.ActiveDelegate<'T (requires 'T : null)> * Microsoft.Bot.Builder.FormFlow.ValidateAsyncDelegate<'T (requires 'T : null)> -> Microsoft.Bot.Builder.FormFlow.IFormBuilder<'T (requires 'T : null)>
Public Function Field (name As String, prompt As PromptAttribute, Optional active As ActiveDelegate(Of T) = Nothing, Optional validate As ValidateAsyncDelegate(Of T) = Nothing) As IFormBuilder(Of T)
Parameters
- name
- String
Path in the form state to the value being filled in.
- prompt
- PromptAttribute
Prompt pattern with more formatting control to describe prompt for field.
- active
- ActiveDelegate<T>
Delegate to test form state to see if step is active.n
- validate
- ValidateAsyncDelegate<T>
Delegate to validate the field value.
Returns
Modified IFormBuilder.
Applies to
Field(String, String, ActiveDelegate<T>, ValidateAsyncDelegate<T>)
Define a step for filling in a particular value in the form state.
public Microsoft.Bot.Builder.FormFlow.IFormBuilder<T> Field (string name, string prompt, Microsoft.Bot.Builder.FormFlow.ActiveDelegate<T> active = default, Microsoft.Bot.Builder.FormFlow.ValidateAsyncDelegate<T> validate = default);
abstract member Field : string * string * Microsoft.Bot.Builder.FormFlow.ActiveDelegate<'T (requires 'T : null)> * Microsoft.Bot.Builder.FormFlow.ValidateAsyncDelegate<'T (requires 'T : null)> -> Microsoft.Bot.Builder.FormFlow.IFormBuilder<'T (requires 'T : null)>
Public Function Field (name As String, prompt As String, Optional active As ActiveDelegate(Of T) = Nothing, Optional validate As ValidateAsyncDelegate(Of T) = Nothing) As IFormBuilder(Of T)
Parameters
- name
- String
Path in the form state to the value being filled in.
- prompt
- String
Simple \ref patterns to describe prompt for field.
- active
- ActiveDelegate<T>
Delegate to test form state to see if step is active.n
- validate
- ValidateAsyncDelegate<T>
Delegate to validate the field value.
Returns
Modified IFormBuilder.