MemoryScope Class

Definition

MemoryScope represents a named memory scope abstract class.

public abstract class MemoryScope
type MemoryScope = class
Public MustInherit Class MemoryScope
Inheritance
MemoryScope
Derived

Constructors

MemoryScope(String, Boolean)

Initializes a new instance of the MemoryScope class.

Properties

IncludeInSnapshot

Gets or sets a value indicating whether this memory should be included in snapshot.

Name

Gets or sets name of the scope.

Methods

DeleteAsync(DialogContext, CancellationToken)

Deletes any state in storage and the cache for this BotState.

GetMemory(DialogContext)

Get the backing memory for this scope.

LoadAsync(DialogContext, Boolean, CancellationToken)

Populates the state cache for this BotState from the storage layer.

SaveChangesAsync(DialogContext, Boolean, CancellationToken)

Writes the state cache for this BotState to the storage layer.

SetMemory(DialogContext, Object)

Changes the backing object for the memory scope.

Applies to