ThisMemoryScope 类

定义

DialogMemoryScope 映射“this”-> dc.ActiveDialog.State。

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

构造函数

ThisMemoryScope()

初始化 ThisMemoryScope 类的新实例。

属性

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)

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

适用于