語言

ForEachElement 類別

定義

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

public class ForEachElement : Microsoft.Bot.Builder.Dialogs.DialogContainer, Microsoft.Bot.Builder.Dialogs.IDialogDependencies
type ForEachElement = class
    inherit DialogContainer
    interface IDialogDependencies
Public Class ForEachElement
Inherits DialogContainer
Implements IDialogDependencies
繼承
ForEachElement
實作

建構函式

名稱 Description
ForEachElement(IEnumerable<Dialog>)

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

欄位

名稱 Description
Kind

類別識別碼。

屬性

名稱 Description
Actions

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

Dialogs

負責接收或設定容器 DialogSet。

(繼承來源 DialogContainer)
Disabled

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

Id

取得或設定對話的 ID。

(繼承來源 Dialog)
IgnoreMemoryScopeBinding

會取得或設定一個值,指示 DialogContainer 是否應該與記憶體範圍互動。

(繼承來源 DialogContainer)
Index

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

ItemsProperty

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

Source

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

(繼承來源 Dialog)
TelemetryClient

取得或設定 IBotTelemetryClient 用於記錄。 設定此屬性時,所有包含對話框的 TelemetryClient 屬性也會被設定。

(繼承來源 DialogContainer)
Value

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

方法

名稱 Description
BeginDialogAsync(DialogContext, Object, CancellationToken)

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

CheckForVersionChangeAsync(DialogContext, CancellationToken)

CheckForVersionChangeAsync。

(繼承來源 DialogContainer)
ContinueDialogAsync(DialogContext, CancellationToken)

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

CreateChildContext(DialogContext)

建立容器使用中子系的內部對話內容。

EndDialogAsync(ITurnContext, DialogInstance, DialogReason, CancellationToken)

對話框結束時呼叫。

(繼承來源 Dialog)
FindDialog(String, DialogContext)

找到一個先前已加入容器的子對話框。 使用 DialogContext 作為備用工具來收集對話內容。

(繼承來源 DialogContainer)
FindDialog(String)

找到一個先前已加入容器的子對話框。

(繼承來源 DialogContainer)
GetDependencies()

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

GetInternalVersion()

GetInternalVersion - 傳回此容器的內部版本標識碼。

(繼承來源 DialogContainer)
GetVersion()

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

(繼承來源 Dialog)
OnComputeId()

建立對話的計算 ID。

OnDialogEventAsync(DialogContext, DialogEvent, CancellationToken)

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

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)

當子對話完成此回合時呼叫,將控件傳回此對話方塊。

(繼承來源 Dialog)

擴充方法

名稱 Description
RunAsync(Dialog, ITurnContext, IStatePropertyAccessor<DialogState>, CancellationToken)

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

適用於