Partilhar via


ImmutabilityExtensionMethods Class

Definition

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

public ref class ImmutabilityExtensionMethods abstract sealed
public static class ImmutabilityExtensionMethods
type ImmutabilityExtensionMethods = class
Public Module ImmutabilityExtensionMethods
Inheritance
ImmutabilityExtensionMethods

Methods

CanDelete(ModelElement, Guid[])

Deletes the element from the model.

CanDeleteElements(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.

GetLocks(ModelElement)

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

GetLocks(Partition)

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

GetLocks(Store)

Get the lock flags for this Store instance

IsLocked(ModelElement, Locks)

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

IsLocked(Partition, Locks)

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

IsLocked(Store, Locks)

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

SetLocks(ModelElement, Locks)

Set the lock flags of this element

SetLocks(Partition, Locks)

Set the lock flags of the specified Partition instance

SetLocks(Store, Locks)

Set the lock flags of this Store instance

Applies to