Partition Class

 

Provides a logical container for elements in a store.

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

System::Object
  Microsoft.VisualStudio.Modeling::Partition

public ref class Partition sealed : IDisposable

NameDescription
System_CAPS_pubmethodPartition(Store^)

Constructor

NameDescription
System_CAPS_pubpropertyAlternateId

The AlternateId is used in the

System_CAPS_pubpropertyContexts

The Contexts that are referenced by the Partition. The Dictionary keys are the IDs of the Contexts. The Dictionary values are the Context instances.

System_CAPS_pubpropertyDirtyCount

Indicates the number of changes to the Partition.

System_CAPS_pubpropertyDomainDataDirectory

Gets domain information directory of the Store this partition belongs to.

System_CAPS_pubpropertyElementDirectory

Directory of elements contained within partition.

System_CAPS_pubpropertyElementFactory

The ElementFactory for the model

System_CAPS_pubpropertyId

The Id of this Partition.

System_CAPS_pubpropertyIsDirty

Indicates true when the Partition is in a dirty state.

System_CAPS_pubpropertyIsReadOnly

Gets whether this partition is read-only.

System_CAPS_pubpropertyStateId

A StateId that defines what state this Partition object is in.

System_CAPS_pubpropertyStore

The Store the Partition belongs to.

NameDescription
System_CAPS_pubmethodAddContext(Context^)

Add context to partition

System_CAPS_pubmethodDeleteElements(IEnumerable<ModelElement^>^, array<Guid>^)

Delete the object graphs rooted in the specified collection of elements.

System_CAPS_pubmethodDispose()

Disposes the state of this object.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

Destructor.(Overrides Object::Finalize().)

System_CAPS_pubmethodSystem_CAPS_staticFindByAlternateId(Store^, Object^)

Find a partition by its AlternateKey

System_CAPS_pubmethodGetClosureList(ICollection<ModelElement^>^, ClosureType)

Gets a closure list of the given type based on the given root element list

System_CAPS_pubmethodGetClosureList(ICollection<ModelElement^>^, ClosureType, Boolean)

Gets a closure list of the given type based on the given root element list

System_CAPS_pubmethodGetClosureList(ICollection<ModelElement^>^, ClosureType, Boolean, IEnumerable<DomainRoleInfo^>^)

Gets a closure list of the given type based on the given root element list

System_CAPS_pubmethodGetClosureList(ICollection<ModelElement^>^, ClosureType, Boolean, IEnumerable<DomainRoleInfo^>^, IEnumerable<DomainRoleInfo^>^)

Gets a closure list of the given type based on the given root element list

System_CAPS_pubmethodGetClosureList(ICollection<ModelElement^>^, ClosureType, IEnumerable<DomainRoleInfo^>^)

Gets a closure list of the given type based on the given root element list

System_CAPS_pubmethodGetClosureList(ICollection<ModelElement^>^, ClosureType, IEnumerable<DomainRoleInfo^>^, IEnumerable<DomainRoleInfo^>^)

Gets a closure list of the given type based on the given root element list

System_CAPS_pubmethodGetClosurePrototypeGroup(ICollection<ModelElement^>^, ClosureType)

Creates an ElementGroupPrototype of the given closure type based on the given list of root Elements

System_CAPS_pubmethodGetClosurePrototypeGroup(ICollection<ModelElement^>^, ClosureType, Boolean)

Creates an ElementGroupPrototype of the given closure type based on the given list of root Elements

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodRemoveContext(Context^)

Method to remove a Context from the Partition

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubeventPartitionDisposing

Allows clients to receive PartitionDisposing events

NameDescription
System_CAPS_pubmethodCanDeleteElements(IEnumerable<ModelElement^>^, array<Guid>^)

Query whether a specified set of elements can be deleted, taking into account any IMS locks applicable to any of the elements in the complete delete closure of the elements. The elements cannot be deleted if any element in the closure is Delete locked, or if any element is the target of a link sourced on an element with the RolePlayer lock AND that element is outside the closure.(Defined by ImmutabilityExtensionMethods.)

System_CAPS_pubmethodGetLocks()

Overloaded. Get the lock flags for this Partition instance. This will include any locks enabled on the Store containing the partition.(Defined by ImmutabilityExtensionMethods.)

System_CAPS_pubmethodIsLocked(Locks)

Overloaded. Test whether this partition has any of a specified set of locks(Defined by ImmutabilityExtensionMethods.)

System_CAPS_pubmethodSetLocks(Locks)

Overloaded. Set the lock flags of the specified Partition instance(Defined by ImmutabilityExtensionMethods.)

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.

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

Return to top
Show: