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
| Dialog |
Initializes a new instance of the DialogClassMemoryScope class. |
Inherited Properties
| include |
|
| name |
Inherited Methods
| delete(Dialog |
Deletes the backing memory for a scope. |
| get |
Gets the backing memory for this scope. |
| load(Dialog |
Loads a scopes backing memory at the start of a turn. |
| save |
Saves a scopes backing memory at the end of a turn. |
| set |
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
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