Export (0) Print
Expand All

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

System.Object
  Microsoft.VisualStudio.Modeling.Immutability.ImmutabilityExtensionMethods

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

public static class ImmutabilityExtensionMethods

The ImmutabilityExtensionMethods type exposes the following members.

  NameDescription
Public methodStatic memberCanDeleteDeletes the element from the model.
Public methodStatic memberCanDeleteElementsQuery 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.
Public methodStatic memberGetLocks(ModelElement)Get the lock flags for this element. This will include any locks enabled on the Partition containing the element.
Public methodStatic memberGetLocks(Partition)Get the lock flags for this Partition instance. This will include any locks enabled on the Store containing the partition.
Public methodStatic memberGetLocks(Store)Get the lock flags for this Store instance
Public methodStatic memberIsLocked(ModelElement, Locks)Test whether this element has any of a specified set of locks
Public methodStatic memberIsLocked(Partition, Locks)Test whether this partition has any of a specified set of locks
Public methodStatic memberIsLocked(Store, Locks)Test whether this store has any of a specified set of locks
Public methodStatic memberSetLocks(ModelElement, Locks)Set the lock flags of this element
Public methodStatic memberSetLocks(Partition, Locks)Set the lock flags of the specified Partition instance
Public methodStatic memberSetLocks(Store, Locks)Set the lock flags of this Store instance
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.
Show:
© 2014 Microsoft