Share via


PromptAsyncDelegate<T> Delegate

Definition

A delegate for styling and posting a prompt.

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) 

Type Parameters

T

Parameters

context
IDialogContext

Message context.

prompt
FormPrompt

Prompt to be posted.

state
T

State of the form.

field
IField<T>

Field being prompted or null if not a field.

Return Value

Prompt that was posted.

Applies to