SettingsMemoryScope 类

定义

SettingsMemoryscope 映射“settings” -> IConfiguration。

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

构造函数

SettingsMemoryScope(IConfiguration)

初始化 SettingsMemoryScope 类的新实例。

属性

IncludeInSnapshot

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

(继承自 MemoryScope)
Name

获取或设置范围的名称。

(继承自 MemoryScope)

方法

DeleteAsync(DialogContext, CancellationToken)

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

(继承自 MemoryScope)
GetMemory(DialogContext)

获取此范围的后备内存。

LoadAsync(DialogContext, Boolean, CancellationToken)

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

LoadSettings(IConfiguration)

生成配置提供程序的字典视图。

SaveChangesAsync(DialogContext, Boolean, CancellationToken)

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

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

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

适用于