Field<T>.SetValidate(ValidateAsyncDelegate<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.
Set the field validation.
public Microsoft.Bot.Builder.FormFlow.Advanced.Field<T> SetValidate (Microsoft.Bot.Builder.FormFlow.ValidateAsyncDelegate<T> validate);
member this.SetValidate : Microsoft.Bot.Builder.FormFlow.ValidateAsyncDelegate<'T (requires 'T : null)> -> Microsoft.Bot.Builder.FormFlow.Advanced.Field<'T (requires 'T : null)>
Public Function SetValidate (validate As ValidateAsyncDelegate(Of T)) As Field(Of T)
Parameters
- validate
- ValidateAsyncDelegate<T>
The validator.
Returns
A Field<T>.