Field<T>.SetValidate(ValidateAsyncDelegate<T>) Method

Definition

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>.

Applies to