DialogClassMemoryScope 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
DialogMemoryScope 映射“dialogclass”-> dc.Parent.ActiveDialog 属性。
public class DialogClassMemoryScope : Microsoft.Bot.Builder.Dialogs.Memory.Scopes.MemoryScope
type DialogClassMemoryScope = class
inherit MemoryScope
Public Class DialogClassMemoryScope
Inherits MemoryScope
- 继承
构造函数
DialogClassMemoryScope() |
初始化 DialogClassMemoryScope 类的新实例。 |
属性
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) |
更改内存范围的后备对象。 |