ImmutabilityExtensionMethods Class

ImmutabilityExtensionMethods Class


Extension methods to provide a public instance side immutability API without polluting the model APIs unless the user specifically imports the Immutability namespace

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


public static class ImmutabilityExtensionMethods

System_CAPS_pubmethodSystem_CAPS_staticCanDelete(ModelElement, Guid[])

Deletes the element from the model.

System_CAPS_pubmethodSystem_CAPS_staticCanDeleteElements(Partition, IEnumerable<ModelElement>, 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.


Get the lock flags for this element. This will include any locks enabled on the Partition containing the element.


Get the lock flags for this Partition instance. This will include any locks enabled on the Store containing the partition.


Get the lock flags for this Store instance

System_CAPS_pubmethodSystem_CAPS_staticIsLocked(ModelElement, Locks)

Test whether this element has any of a specified set of locks

System_CAPS_pubmethodSystem_CAPS_staticIsLocked(Partition, Locks)

Test whether this partition has any of a specified set of locks

System_CAPS_pubmethodSystem_CAPS_staticIsLocked(Store, Locks)

Test whether this store has any of a specified set of locks

System_CAPS_pubmethodSystem_CAPS_staticSetLocks(ModelElement, Locks)

Set the lock flags of this element

System_CAPS_pubmethodSystem_CAPS_staticSetLocks(Partition, Locks)

Set the lock flags of the specified Partition instance

System_CAPS_pubmethodSystem_CAPS_staticSetLocks(Store, Locks)

Set the lock flags of this Store instance

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
© 2015 Microsoft