語言

Foreach 類別

定義

警告

Use ForEachElement instead.

對記憶體中清單或集合中的每個項目執行一組動作一次。

[System.Obsolete("Use ForEachElement instead.")]
public class Foreach : Microsoft.Bot.Builder.Dialogs.Adaptive.Actions.ActionScope
[<System.Obsolete("Use ForEachElement instead.")>]
type Foreach = class
    inherit ActionScope
Public Class Foreach
Inherits ActionScope
繼承
屬性

建構函式

名稱 Description
Foreach(String, Int32)
已淘汰.

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

欄位

名稱 Description
Kind
已淘汰.

類別識別碼。

OFFSETKEY
已淘汰.

定義偏移鍵的路徑。

(繼承來源 ActionScope)

屬性

名稱 Description
Actions
已淘汰.

取得或設定要執行的動作。

(繼承來源 ActionScope)
Disabled
已淘汰.

取得或設定一個可選表達式,若為真則會停用此動作。

Id
已淘汰.

取得或設定對話的 ID。

(繼承來源 Dialog)
Index
已淘汰.

取得或設定屬性路徑表達式為項目索引。

ItemsProperty
已淘汰.

取得或設定屬性路徑表達式到該項目集合。

Source
已淘汰.

取得 cref=“SourceRange”/> 的資訊。

(繼承來源 Dialog)
TelemetryClient
已淘汰.

取得或設定 IBotTelemetryClient 用於記錄。

(繼承來源 Dialog)
Value
已淘汰.

取得或設定屬性路徑表達式為項目值。

方法

名稱 Description
BeginActionAsync(DialogContext, Int32, CancellationToken)
已淘汰.

啟動新的對話框,並將其推送至對話堆疊。

(繼承來源 ActionScope)
BeginDialogAsync(DialogContext, Object, CancellationToken)
已淘汰.

啟動對話框並推送至對話堆疊時呼叫。

ContinueDialogAsync(DialogContext, CancellationToken)
已淘汰.

當對話 繼續時呼叫,當對話是進行中對話,使用者會回覆新的活動時。

(繼承來源 ActionScope)
EndDialogAsync(ITurnContext, DialogInstance, DialogReason, CancellationToken)
已淘汰.

對話框結束時呼叫。

(繼承來源 Dialog)
GetDependencies()
已淘汰.

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

(繼承來源 ActionScope)
GetVersion()
已淘汰.

會得到一個唯一字串,代表該對話框的版本。 如果之間的版本變更,對話系統將會發出 DialogChanged 事件。

(繼承來源 ActionScope)
NextItemAsync(DialogContext, CancellationToken)
已淘汰.

呼叫下一堆物品。

OnActionScopeResultAsync(DialogContext, ActionScopeResult, CancellationToken)
已淘汰.

當 control 返回此對話時會呼叫。ActionScopeResult

(繼承來源 ActionScope)
OnBreakLoopAsync(DialogContext, ActionScopeResult, CancellationToken)
已淘汰.

當 一個返回此對話框且 ActionScopeResult ActionCommand 屬性設為 BreakLoop的控制項時呼叫。

OnComputeId()
已淘汰.

建立對話的計算 ID。

OnContinueLoopAsync(DialogContext, ActionScopeResult, CancellationToken)
已淘汰.

當 一個返回此對話框且 ActionScopeResult ActionCommand 屬性設為 ContinueLoop的控制項時呼叫。

OnDialogEventAsync(DialogContext, DialogEvent, CancellationToken)
已淘汰.

當事件被提出時,會呼叫,使用 DialogContext.emitEvent(),無論是由當前對話還是該對話開始的對話。

(繼承來源 Dialog)
OnEndOfActionsAsync(DialogContext, Object, CancellationToken)
已淘汰.

當對話動作結束時呼叫。

OnGotoActionAsync(DialogContext, ActionScopeResult, CancellationToken)
已淘汰.

當將控制權帶回此對話 ActionScopeResult 時呼叫,並將 ActionCommand 屬性設為 GoToAction。

(繼承來源 ActionScope)
OnNextActionAsync(DialogContext, Object, CancellationToken)
已淘汰.

當對話繼續進入下一個動作時,會被呼叫。

(繼承來源 ActionScope)
OnPostBubbleEventAsync(DialogContext, DialogEvent, CancellationToken)
已淘汰.

在事件向所有家長泡泡後呼叫,但未處理。

(繼承來源 Dialog)
OnPreBubbleEventAsync(DialogContext, DialogEvent, CancellationToken)
已淘汰.

在事件反升至其父系之前呼叫。

(繼承來源 Dialog)
RegisterSourceLocation(String, Int32)
已淘汰.

在指定位置註冊 cref=“SourceRange”/> 。

(繼承來源 Dialog)
RepromptDialogAsync(ITurnContext, DialogInstance, CancellationToken)
已淘汰.

當對話框應該重新提示使用者輸入時呼叫。

(繼承來源 Dialog)
ResumeDialogAsync(DialogContext, DialogReason, Object, CancellationToken)
已淘汰.

當子對話結束回合時呼叫,將控制權還給該對話。

(繼承來源 ActionScope)

擴充方法

名稱 Description
RunAsync(Dialog, ITurnContext, IStatePropertyAccessor<DialogState>, CancellationToken)
已淘汰.

建立對話堆疊並啟動對話,並將它推送至堆疊。

適用於