Share via


Field<T>.SetRecognizer(IRecognize<T>) Method

Definition

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.

Applies to