Del via


ConversationMemoryScope Class

Definition

ConversationMemoryScope represents Conversation scoped memory.

public class ConversationMemoryScope : Microsoft.Bot.Builder.Dialogs.Memory.Scopes.BotStateMemoryScope<Microsoft.Bot.Builder.ConversationState>
type ConversationMemoryScope = class
    inherit BotStateMemoryScope<ConversationState>
Public Class ConversationMemoryScope
Inherits BotStateMemoryScope(Of ConversationState)
Inheritance

Remarks

This relies on the ConversationState object being accessible from turnContext.TurnState.Get<ConversationState>().

Constructors

ConversationMemoryScope()

Initializes a new instance of the ConversationMemoryScope class. Create new ConversationMemoryScope bound to ConversationState.

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 BotStateMemoryScope<T>)
GetMemory(DialogContext)

Get the backing memory for this scope.

(Inherited from BotStateMemoryScope<T>)
LoadAsync(DialogContext, Boolean, CancellationToken)

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

(Inherited from BotStateMemoryScope<T>)
SaveChangesAsync(DialogContext, Boolean, CancellationToken)

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

(Inherited from BotStateMemoryScope<T>)
SetMemory(DialogContext, Object)

Changes the backing object for the memory scope.

(Inherited from BotStateMemoryScope<T>)

Applies to