Field<T>.SetRecognizer(IRecognize<T>) 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.
Sets the recognizer for the field.
public Microsoft.Bot.Builder.FormFlow.Advanced.Field<T> SetRecognizer (Microsoft.Bot.Builder.FormFlow.Advanced.IRecognize<T> recognizer);
member this.SetRecognizer : Microsoft.Bot.Builder.FormFlow.Advanced.IRecognize<'T (requires 'T : null)> -> Microsoft.Bot.Builder.FormFlow.Advanced.Field<'T (requires 'T : null)>
Public Function SetRecognizer (recognizer As IRecognize(Of T)) As Field(Of T)
Parameters
- recognizer
- IRecognize<T>
The recognizer for the field.
Returns
A Field<T>.
Remarks
This should only be called when you are dynamically defining a field using a DefineAsyncDelegate<T> because recognizers usually require the field and often change if the localization changes.