ChoiceInput.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 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
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.