InputDialog.OnRenderPromptAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
dialogcontext.
- state
- InputState
inputState.
- cancellationToken
- CancellationToken
the CancellationToken for the task.
Returns
activity to send to the user.
Remarks
Override this to customize the output sent to the user.