Share via


AttachmentInput.OnRecognizeInputAsync Method

Definition

Called when input has been received.

protected override System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.Adaptive.Input.InputState> OnRecognizeInputAsync (Microsoft.Bot.Builder.Dialogs.DialogContext dc, System.Threading.CancellationToken cancellationToken = default);
override this.OnRecognizeInputAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.Adaptive.Input.InputState>
Protected Overrides Function OnRecognizeInputAsync (dc As DialogContext, Optional cancellationToken As CancellationToken = Nothing) As Task(Of InputState)

Parameters

dc
DialogContext

The DialogContext for the current turn of conversation.

cancellationToken
CancellationToken

Optional, the CancellationToken that can be used by other objects or threads to receive notice of cancellation.

Returns

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

Applies to