NDepend.API Documentation
CanDeleteGroup Method
NDepend.CodeQuery Namespace > IController Interface : CanDeleteGroup Method
The group to delete.
If false is returned, contains the plain-english explanation of the failure.
Gets a value indicating whether groupToDelete can be deleted.
Syntax
bool CanDeleteGroup( 
   IGroup groupToDelete,
   out string failureReason
)

Parameters

groupToDelete
The group to delete.
failureReason
If false is returned, contains the plain-english explanation of the failure.
Remarks
If groupToDelete IGroup.IsExtractedFromCode or IGroup.IsGroupOfImportedRules, the group cannot be deleted.
Requirements

Target Platforms: Windows 11, 10, 8, 7and Linux, MacOS with net10.0, net9.0 or net8.0 installed

See Also

Reference

IController Interface
IController Members