Compartilhar via


ImmutabilityExtensionMethods.CanDeleteElements Method

Definition

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.

public:
[System::Runtime::CompilerServices::Extension]
 static bool CanDeleteElements(Microsoft::VisualStudio::Modeling::Partition ^ partition, System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Modeling::ModelElement ^> ^ rootElements, ... cli::array <Guid> ^ domainRolesToNotPropagate);
public static bool CanDeleteElements (this Microsoft.VisualStudio.Modeling.Partition partition, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Modeling.ModelElement> rootElements, params Guid[] domainRolesToNotPropagate);
static member CanDeleteElements : Microsoft.VisualStudio.Modeling.Partition * seq<Microsoft.VisualStudio.Modeling.ModelElement> * Guid[] -> bool
<Extension()>
Public Function CanDeleteElements (partition As Partition, rootElements As IEnumerable(Of ModelElement), ParamArray domainRolesToNotPropagate As Guid()) As Boolean

Parameters

partition
Partition

This partition

rootElements
IEnumerable<ModelElement>

Roots of the object graphs to delete

domainRolesToNotPropagate
Guid[]

A list of domain role ID-s through which delete should not be propagated.

Returns

Applies to