共用方式為


IRecognizer.RecognizeAsync 方法

定義

多載

RecognizeAsync(ITurnContext, CancellationToken)

透過辨識器執行語句,並傳回泛型辨識器結果。

RecognizeAsync<T>(ITurnContext, CancellationToken)

透過辨識器執行語句,並傳回強型別辨識器結果。

RecognizeAsync(ITurnContext, CancellationToken)

透過辨識器執行語句,並傳回泛型辨識器結果。

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)

參數

turnContext
ITurnContext

回合內容。

cancellationToken
CancellationToken

取消權杖。

傳回

語句的分析。

適用於

RecognizeAsync<T>(ITurnContext, CancellationToken)

透過辨識器執行語句,並傳回強型別辨識器結果。

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)

類型參數

T

辨識結果類型。

參數

turnContext
ITurnContext

回合內容。

cancellationToken
CancellationToken

取消權杖。

傳回

Task<T>

語句的分析。

適用於