DefineAsyncDelegate<T> 委托

定义

定义字段委托。

public delegate System.Threading.Tasks.Task<bool> DefineAsyncDelegate<T>(T state, Field<T> field) where T : class;
type DefineAsyncDelegate<'T (requires 'T : null)> = delegate of 'T * Field<'T (requires 'T : null)> -> Task<bool>
Public Delegate Function DefineAsyncDelegate(Of T)(state As T, field As Field(Of T)) As Task(Of Boolean) 

类型参数

T

窗体状态类型。

参数

state
T

窗体状态。

field
Field<T>

动态定义的字段。

返回值

如果定义了字段,则为 True。

注解

委托用于动态定义字段提示和识别器。 可以使用 上的 fluent 方法来 Field<T> 更改字段的特征。

适用于