語言

PromptAsyncDelegate<T> 代理人

定義

一位負責造型與發佈提示的代表。

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>

欄位被提示,若不是欄位則為空欄位。

傳回值

這是有人發的提示。

適用於