InputDialog.OnRecognizeInputAsync(DialogContext, CancellationToken) 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.
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
dialogContext.
- cancellationToken
- CancellationToken
the CancellationToken for the task.
Returns
InputState which reflects whether input was recognized as valid or not.