Share via


ConfirmInput.OnRenderPromptAsync Method

Definition

Method which renders the prompt to the user given the current input state.

protected override 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);
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 Overrides Function OnRenderPromptAsync (dc As DialogContext, state As InputState, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IActivity)

Parameters

dc
DialogContext

The DialogContext for the current turn of conversation.

state
InputState

Dialog InputState.

cancellationToken
CancellationToken

Optional, the CancellationToken that can be used by other objects or threads to receive notice of cancellation.

Returns

Activity to send to the user.

Applies to