DialogContextMemoryScope Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
DialogContextMemoryScope maps "dialogcontext" -> properties.
public class DialogContextMemoryScope : Microsoft.Bot.Builder.Dialogs.Memory.Scopes.MemoryScope
type DialogContextMemoryScope = class
inherit MemoryScope
Public Class DialogContextMemoryScope
Inherits MemoryScope
- Inheritance
Remarks
dc.stack => stack of all dialog ids up to the root dialog. dc.activeDialog => id of active dialog. dc.parent => id of parent dialog.
Constructors
DialogContextMemoryScope() |
Initializes a new instance of the DialogContextMemoryScope class. |
Fields
ActiveDialog |
Active dialog name. |
Parent |
Parent name. |
Stack |
Stack name. |
Properties
IncludeInSnapshot |
Gets or sets a value indicating whether this memory should be included in snapshot. (Inherited from MemoryScope) |
Name |
Gets or sets name of the scope. (Inherited from MemoryScope) |
Methods
DeleteAsync(DialogContext, CancellationToken) |
Deletes any state in storage and the cache for this BotState. (Inherited from MemoryScope) |
GetMemory(DialogContext) |
Gets the backing memory for this scope. |
LoadAsync(DialogContext, Boolean, CancellationToken) |
Populates the state cache for this BotState from the storage layer. (Inherited from MemoryScope) |
SaveChangesAsync(DialogContext, Boolean, CancellationToken) |
Writes the state cache for this BotState to the storage layer. (Inherited from MemoryScope) |
SetMemory(DialogContext, Object) |
Changes the backing object for the memory scope. |