IRecognizer.RecognizeAsync 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.
Overloads
RecognizeAsync(ITurnContext, CancellationToken) |
Runs an utterance through a recognizer and returns a generic recognizer result. |
RecognizeAsync<T>(ITurnContext, CancellationToken) |
Runs an utterance through a recognizer and returns a strongly-typed recognizer result. |
RecognizeAsync(ITurnContext, CancellationToken)
Runs an utterance through a recognizer and returns a generic recognizer result.
public System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult> RecognizeAsync (Microsoft.Bot.Builder.ITurnContext turnContext, System.Threading.CancellationToken cancellationToken);
abstract member RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.RecognizerResult>
Public Function RecognizeAsync (turnContext As ITurnContext, cancellationToken As CancellationToken) As Task(Of RecognizerResult)
Parameters
- turnContext
- ITurnContext
Turn context.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
Analysis of utterance.
Applies to
RecognizeAsync<T>(ITurnContext, CancellationToken)
Runs an utterance through a recognizer and returns a strongly-typed recognizer result.
public System.Threading.Tasks.Task<T> RecognizeAsync<T> (Microsoft.Bot.Builder.ITurnContext turnContext, System.Threading.CancellationToken cancellationToken) where T : Microsoft.Bot.Builder.IRecognizerConvert, new();
abstract member RecognizeAsync : Microsoft.Bot.Builder.ITurnContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))> (requires 'T :> Microsoft.Bot.Builder.IRecognizerConvert and 'T : (new : unit -> 'T))
Public Function RecognizeAsync(Of T As {IRecognizerConvertNew}) (turnContext As ITurnContext, cancellationToken As CancellationToken) As Task(Of T)
Type Parameters
- T
The recognition result type.
Parameters
- turnContext
- ITurnContext
Turn context.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
Analysis of utterance.