Condividi tramite


Context Class

Definition

Context contains the mapping of transactions to partitions

public ref class Context sealed : IDisposable
public sealed class Context : IDisposable
type Context = class
    interface IDisposable
Public NotInheritable Class Context
Implements IDisposable
Inheritance
Context
Implements

Constructors

Context(Store)

Constructor

Properties

Id

The Id of this Context.

InRedo

Returns true if the context is in the middle of an redo.

InUndo

Returns true if the context is in the middle of an undo.

InUndoRedoOrRollback

Returns true if the context is in the middle of an undo, redo or rollback.

Partitions

The Partitions that are used by the Context. The Dictionary keys are the IDs of the Partitions. The Dictionary values are the Partition instances.

Store

The Store the Context belongs to.

UndoManager

The UndoManager for the Context.

Methods

AddPartition(Partition)

Add new partition to context.

Delete()

Method to delete a Partition from the Context

Dispose()

Disposes the state of this object.

Finalize()

Finalizer.

RemovePartition(Partition)

Remove partition from context.

Applies to