Field<T>.SetDefine(DefineAsyncDelegate<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.
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.