Share via


DialogClassMemoryScope class

A memory scope that provides access to the properties of the active dialog class. This scope resolves to the active dialog if it is a container, or to its parent dialog.

Extends

Constructors

DialogClassMemoryScope()

Initializes a new instance of the DialogClassMemoryScope class.

Inherited Properties

includeInSnapshot
name

Inherited Methods

delete(DialogContext)

Deletes the backing memory for a scope.

getMemory(DialogContext)

Gets the backing memory for this scope.

load(DialogContext)

Loads a scopes backing memory at the start of a turn.

saveChanges(DialogContext)

Saves a scopes backing memory at the end of a turn.

setMemory(DialogContext, object)

Changes the backing object for the memory scope.

Constructor Details

DialogClassMemoryScope()

Initializes a new instance of the DialogClassMemoryScope class.

new DialogClassMemoryScope()

Inherited Property Details

includeInSnapshot

includeInSnapshot: boolean

Property Value

boolean

Inherited From ClassMemoryScope.includeInSnapshot

name

name: string

Property Value

string

Inherited From ClassMemoryScope.name

Inherited Method Details

delete(DialogContext)

Deletes the backing memory for a scope.

function delete(_dialogContext: DialogContext): Promise<void>

Parameters

_dialogContext
DialogContext

Current dialog context.

Returns

Promise<void>

Inherited From ClassMemoryScope.delete

getMemory(DialogContext)

Gets the backing memory for this scope.

function getMemory(dialogContext: DialogContext): object

Parameters

dialogContext
DialogContext

The DialogContext object for this turn.

Returns

object

The memory for the scope, containing cloned properties of the active dialog.

Inherited From ClassMemoryScope.getMemory

load(DialogContext)

Loads a scopes backing memory at the start of a turn.

function load(_dialogContext: DialogContext): Promise<void>

Parameters

_dialogContext
DialogContext

Current dialog context.

Returns

Promise<void>

Inherited From ClassMemoryScope.load

saveChanges(DialogContext)

Saves a scopes backing memory at the end of a turn.

function saveChanges(_dialogContext: DialogContext): Promise<void>

Parameters

_dialogContext
DialogContext

Current dialog context.

Returns

Promise<void>

Inherited From ClassMemoryScope.saveChanges

setMemory(DialogContext, object)

Changes the backing object for the memory scope.

function setMemory(_dialogContext: DialogContext, _memory: object)

Parameters

_dialogContext
DialogContext

Current dialog context

_memory

object

memory to assign

Inherited From ClassMemoryScope.setMemory