InputDialog.OnRecognizeInputAsync(DialogContext, CancellationToken) Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Aangeroepen wanneer invoer is ontvangen, overschrijft u deze methode om de herkenning van de invoer aan te passen.
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
voor CancellationToken de taak.
Retouren
InputState die aangeeft of invoer als geldig is herkend of niet.