DialogContextMemoryScope 类

定义

DialogContextMemoryScope 映射“dialogcontext”-> 属性。

public class DialogContextMemoryScope : Microsoft.Bot.Builder.Dialogs.Memory.Scopes.MemoryScope
type DialogContextMemoryScope = class
    inherit MemoryScope
Public Class DialogContextMemoryScope
Inherits MemoryScope
继承
DialogContextMemoryScope

注解

dc.stack => 根对话的所有对话 ID 的堆栈。 dc.activeDialog => 活动对话框的 ID。 dc.parent => 父对话的 ID。

构造函数

DialogContextMemoryScope()

初始化 DialogContextMemoryScope 类的新实例。

字段

ActiveDialog

活动对话框名称。

Parent

父名称。

Stack

堆栈名称。

属性

IncludeInSnapshot

获取或设置一个值,该值指示是否应将此内存包含在快照中。

(继承自 MemoryScope)
Name

获取或设置范围的名称。

(继承自 MemoryScope)

方法

DeleteAsync(DialogContext, CancellationToken)

删除此 BotState的存储和缓存中的任何状态。

(继承自 MemoryScope)
GetMemory(DialogContext)

获取此范围的后备内存。

LoadAsync(DialogContext, Boolean, CancellationToken)

从存储层填充此 BotState 的状态缓存。

(继承自 MemoryScope)
SaveChangesAsync(DialogContext, Boolean, CancellationToken)

将此的状态 BotState 缓存写入存储层。

(继承自 MemoryScope)
SetMemory(DialogContext, Object)

更改内存范围的后备对象。

适用于