Taal

NumberPrompt<T>.OnRecognizeAsync Methode

Definitie

Probeert de invoer van de gebruiker te herkennen.

protected override System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.PromptRecognizerResult<T>> OnRecognizeAsync(Microsoft.Bot.Builder.ITurnContext turnContext, System.Collections.Generic.IDictionary<string,object> state, Microsoft.Bot.Builder.Dialogs.PromptOptions options, System.Threading.CancellationToken cancellationToken = default);
override this.OnRecognizeAsync : Microsoft.Bot.Builder.ITurnContext * System.Collections.Generic.IDictionary<string, obj> * Microsoft.Bot.Builder.Dialogs.PromptOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.PromptRecognizerResult<'T>>
Protected Overrides Function OnRecognizeAsync (turnContext As ITurnContext, state As IDictionary(Of String, Object), options As PromptOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of PromptRecognizerResult(Of T))

Parameters

turnContext
ITurnContext

Context voor de huidige beurt van gesprek met de gebruiker.

state
IDictionary<String,Object>

Bevat de status voor het huidige exemplaar van de prompt in de dialoogvensterstack.

options
PromptOptions

Een prompt options-object dat is opgebouwd uit de opties die aanvankelijk werden gegeven in de aanroep van PromptAsync(String, PromptOptions, CancellationToken).

cancellationToken
CancellationToken

Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om kennisgeving van annulering te ontvangen.

Retouren

Een Task weergave van de asynchrone bewerking.

Opmerkingen

Als de taak succesvol is, beschrijft het resultaat het resultaat van de herkenningspoging.

Van toepassing op