NDepend.API Documentation
AddGroup Method
NDepend.CodeQuery Namespace > IGroupOfGroups Interface : AddGroup Method
The group to add.
Add groupToAdd to this group of groups children.
Syntax

Parameters

groupToAdd
The group to add.

Return Value

The new group of groups object representing this group of groups.
Exceptions
ExceptionDescription
groupToAdd must be different than this group of groups, or doesn't have the same controller.
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