PromptAsyncDelegate<T> 委托
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
用于设置样式并发布提示的委托。
public delegate System.Threading.Tasks.Task<Microsoft.Bot.Builder.FormFlow.Advanced.FormPrompt> PromptAsyncDelegate<T>(IDialogContext context, FormPrompt prompt, T state, IField<T> field) where T : class;
type PromptAsyncDelegate<'T (requires 'T : null)> = delegate of IDialogContext * FormPrompt * 'T * IField<'T (requires 'T : null)> -> Task<FormPrompt>
Public Delegate Function PromptAsyncDelegate(Of T)(context As IDialogContext, prompt As FormPrompt, state As T, field As IField(Of T)) As Task(Of FormPrompt)
类型参数
- T
参数
- context
- IDialogContext
消息上下文。
- prompt
- FormPrompt
提示发布。
- state
- T
窗体的状态。
- field
- IField<T>
出现提示的字段;如果不是字段,则为 null。
返回值
已发布的提示。