ForEachElement 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
對記憶體中清單或集合中的每個項目執行一組動作一次。
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
- 繼承
- 實作
建構函式
| 名稱 | 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 |
|---|---|
| RunAsync(Dialog, ITurnContext, IStatePropertyAccessor<DialogState>, CancellationToken) |
建立對話堆疊並啟動對話,並將它推送至堆疊。 |