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
继承
属性

构造函数

Foreach(String, Int32)
已过时.

初始化 Foreach 类的新实例。

字段

Kind
已过时.

类标识符。

OFFSETKEY
已过时.

定义偏移键的路径。

(继承自 ActionScope)

属性

Actions
已过时.

获取或设置要执行的操作。

(继承自 ActionScope)
Disabled
已过时.

获取或设置一个可选表达式,如果 为 true,则禁用此操作。

Id
已过时.

获取或设置对话框的 ID。

(继承自 Dialog)
Index
已过时.

获取或设置项索引的属性路径表达式。

ItemsProperty
已过时.

获取或设置项集合的属性路径表达式。

Source
已过时.

获取 cref=“SourceRange”/>的信息。

(继承自 Dialog)
TelemetryClient
已过时.

获取或设置 IBotTelemetryClient 用于日志记录的 。

(继承自 Dialog)
Value
已过时.

获取或设置项值的属性路径表达式。

方法

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)
已过时.

使用 将控件返回到此对话框时调用 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)

扩展方法

RunAsync(Dialog, ITurnContext, IStatePropertyAccessor<DialogState>, CancellationToken)
已过时.

创建对话堆栈并启动对话,将其推送到堆栈上。

适用于