InputDialog.OnRenderPromptAsync(DialogContext, InputState, CancellationToken) Method

Definition

Method which renders the prompt to the user give n the current input state.

protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Schema.IActivity> OnRenderPromptAsync (Microsoft.Bot.Builder.Dialogs.DialogContext dc, Microsoft.Bot.Builder.Dialogs.Adaptive.Input.InputState state, System.Threading.CancellationToken cancellationToken = default);
abstract member OnRenderPromptAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Builder.Dialogs.Adaptive.Input.InputState * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.IActivity>
override this.OnRenderPromptAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Builder.Dialogs.Adaptive.Input.InputState * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.IActivity>
Protected Overridable Function OnRenderPromptAsync (dc As DialogContext, state As InputState, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IActivity)

Parameters

dc
DialogContext

dialogcontext.

state
InputState

inputState.

cancellationToken
CancellationToken

the CancellationToken for the task.

Returns

Task<IActivity>

activity to send to the user.

Remarks

Override this to customize the output sent to the user.

Applies to