Share via


Field<T>.SetDefine(DefineAsyncDelegate<T>) Method

Definition

Define a delegate for dynamically defining field.

public Microsoft.Bot.Builder.FormFlow.Advanced.Field<T> SetDefine (Microsoft.Bot.Builder.FormFlow.Advanced.DefineAsyncDelegate<T> definition);
member this.SetDefine : Microsoft.Bot.Builder.FormFlow.Advanced.DefineAsyncDelegate<'T (requires 'T : null)> -> Microsoft.Bot.Builder.FormFlow.Advanced.Field<'T (requires 'T : null)>
Public Function SetDefine (definition As DefineAsyncDelegate(Of T)) As Field(Of T)

Parameters

definition
DefineAsyncDelegate<T>

The definition delegate.

Returns

A Field<T>.

Remarks

When you dynamically define a field through this delegate you can use all of the fluent methods defined on Field<T> to change the descriptions and terms dynamically.

Applies to