InputDialog.OnRecognizeInputAsync(DialogContext, CancellationToken) Method

Definition

Called when input has been received, override this method to customize recognition of the input.

protected abstract System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.Adaptive.Input.InputState> OnRecognizeInputAsync (Microsoft.Bot.Builder.Dialogs.DialogContext dc, System.Threading.CancellationToken cancellationToken);
abstract member OnRecognizeInputAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.Adaptive.Input.InputState>
Protected MustOverride Function OnRecognizeInputAsync (dc As DialogContext, cancellationToken As CancellationToken) As Task(Of InputState)

Parameters

dc
DialogContext

dialogContext.

cancellationToken
CancellationToken

the CancellationToken for the task.

Returns

InputState which reflects whether input was recognized as valid or not.

Applies to