IntentRecognitionCanceledEventArgs class

定義意圖辨識已取消結果事件的承載。

Extends

建構函式

IntentRecognitionCanceledEventArgs(CancellationReason, string, CancellationErrorCode, IntentRecognitionResult, number, string)

建立並初始化這個類別的實例。

屬性

errorCode

如果辨識失敗,則為錯誤碼。 已在 1.1.0 版中新增。

errorDetails

如果辨識失敗,請提供所發生錯誤的詳細資料。

offset

表示訊息位移

reason

辨識取消的原因。

result

表示意圖辨識結果。

sessionId

表示會話識別碼。

建構函式詳細資料

IntentRecognitionCanceledEventArgs(CancellationReason, string, CancellationErrorCode, IntentRecognitionResult, number, string)

建立並初始化這個類別的實例。

new IntentRecognitionCanceledEventArgs(reason: CancellationReason, errorDetails: string, errorCode: CancellationErrorCode, result?: IntentRecognitionResult, offset?: number, sessionId?: string)

參數

errorDetails

string

result
IntentRecognitionResult

意圖辨識的結果。

offset

number

位移。

sessionId

string

會話識別碼。

屬性詳細資料

errorCode

如果辨識失敗,則為錯誤碼。 已在 1.1.0 版中新增。

CancellationErrorCode errorCode

屬性值

代表錯誤原因的錯誤碼。

errorDetails

如果辨識失敗,請提供所發生錯誤的詳細資料。

string errorDetails

屬性值

string

String,表示錯誤詳細資料。

offset

表示訊息位移

number offset

屬性值

number

reason

辨識取消的原因。

CancellationReason reason

屬性值

指定取消的原因。

result

表示意圖辨識結果。

IntentRecognitionResult result

屬性值

表示意圖辨識結果。

sessionId

表示會話識別碼。

string sessionId

屬性值

string

表示會話識別碼。