DefineAsyncDelegate<T> 委托
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
定义字段委托。
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> 更改字段的特征。