Partition Class

Provides a logical container for elements in a store.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)

Syntax

'Declaration
Public NotInheritable Class Partition _
    Implements IDisposable
'Usage
Dim instance As Partition
public sealed class Partition : IDisposable
public ref class Partition sealed : IDisposable
public final class Partition implements IDisposable

Remarks

A store can have any number of partitions. In most cases, a store only uses one partition, which is called the default partition. If you don't make any changes to the default behavior, all elements are in the default partition.

When you create an element, you can indicate which partition you want it to be created in.

Partitions provide away for you to divide the elements and links of a model into different logical groups. One reason for using multiple partitions is to isolate the undo and redo actions into different queues in the different partitions. Undo and redo actions are applied to a partition.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.Partition

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Partition Members

Microsoft.VisualStudio.Modeling Namespace

Other Resources

Domain Classes in the Generated API

Providing Custom Constructors