語言

OnIntent 類別

定義

收到活動時所觸發的動作,且已辨識的意圖和實體符合指定的意圖和實體篩選清單。

public class OnIntent : Microsoft.Bot.Builder.Dialogs.Adaptive.Conditions.OnDialogEvent
type OnIntent = class
    inherit OnDialogEvent
Public Class OnIntent
Inherits OnDialogEvent
繼承
衍生

建構函式

名稱 Description
OnIntent(String, List<String>, List<Dialog>, String, String, Int32)

初始化 OnIntent 類別的新執行個體。

欄位

名稱 Description
Kind

類別識別碼。

屬性

名稱 Description
Actions

取得或設定符合規則條件約束時要新增至計劃的動作。

(繼承來源 OnCondition)
ActionScope

拿到動作瞄準鏡。

(繼承來源 OnCondition)
Condition

取得或設定需要符合才能執行之動作的條件(選擇性)。

(繼承來源 OnCondition)
Entities

取得或設定必須辨識此規則才能觸發的實體。

Event

取得或設定要引發的事件。

(繼承來源 OnDialogEvent)
Id

取得或設定此條件唯一 ID 的值。

(繼承來源 OnCondition)
Intent

取得或設定要比對的意圖。

Priority

取得或設定規則優先表達式,其中 0 為最高且小於 0 則忽略。

(繼承來源 OnCondition)
RunOnce

取得或設定一個值,指示規則是否在每組唯一記憶體路徑中只執行一次。

(繼承來源 OnCondition)
Source

找到源頭。

(繼承來源 OnCondition)

方法

名稱 Description
AddExternalCondition(Expression)

在 OnCondition 中加入外部條件。

(繼承來源 OnCondition)
AddExternalCondition(String)

在 OnCondition 中加入外部條件。

(繼承來源 OnCondition)
CreateExpression()

為此條件建立表達式。

CurrentPriority(ActionContext)

計算優先順序表達式的目前值,並傳回它。

(繼承來源 OnCondition)
ExecuteAsync(ActionContext)

方法呼叫來執行規則的動作。

(繼承來源 OnCondition)
GetDependencies()

枚舉子對話相依關係,使其能加入容器對話集。

(繼承來源 OnCondition)
GetExpression()

取得此條件的快取表達式。

(繼承來源 OnCondition)
GetIdentity()

取得此規則行動的身份。

OnCreateChangeList(ActionContext, Object)

建立變更清單時呼叫。

RegisterSourceLocation(String, Int32)

登錄來源位置。

(繼承來源 OnCondition)

適用於