This topic has not yet been rated - Rate this topic

Context Class

Contains the mapping of transactions to partitions.

System.Object
  Microsoft.VisualStudio.Modeling.Context

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
public sealed class Context : IDisposable

The Context type exposes the following members.

  Name Description
Public method Context Initializes a new instance of the Context class.
Top
  Name Description
Public property Id Gets or sets the ID of this context.
Public property InRedo Indicates whether the context is redoing an operation.
Public property InUndo Indicates whether the context is undoing an operation.
Public property InUndoRedoOrRollback Indicates whether the context is undoing an operation, redoing an operation, or rolling back a transaction.
Public property Partitions Gets the partitions that the context uses.
Public property Store Gets the store to which the context belongs.
Public property UndoManager Gets the undo manager for the context.
Top
  Name Description
Public method AddPartition Adds a partition to the context.
Public method Delete Deletes a partition from the context.
Public method Dispose Releases all resources that the Context used.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method RemovePartition Removes a partition from the context.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ