ImmutabilityExtensionMethods::CanDeleteElements Method (Partition^, 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.

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

public:
[ExtensionAttribute]
static bool CanDeleteElements(
	Partition^ partition,
	IEnumerable<ModelElement^>^ rootElements,
	... array<Guid>^ domainRolesToNotPropagate
)

Parameters

partition
Type: Microsoft.VisualStudio.Modeling::Partition^

This partition

rootElements
Type: System.Collections.Generic::IEnumerable<ModelElement^>^

Roots of the object graphs to delete

domainRolesToNotPropagate
Type: array<System::Guid>^

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

Return Value

Type: System::Boolean

Return to top
Show: