NDepend.API Documentation
RemoveGroup Method
NDepend.CodeQuery Namespace > IGroupOfGroups Interface : RemoveGroup Method
The group to remove.
Remove groupToRemove from this group of groups children.
Syntax

Parameters

groupToRemove
The group to remove.

Return Value

The new group of groups object representing this group of groups.
Exceptions
ExceptionDescription
groupToRemove must be different than this group of groups.
Also, this group of groups must contain groupToRemove.
Remarks
Since code query objects are immutable, the old group of groups object have been replaced in the parent hierarchy by the new returned group of groups object.
Requirements

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

See Also

Reference

IGroupOfGroups Interface
IGroupOfGroups Members