NDepend.API Documentation
AddQuery Method
NDepend.CodeQuery Namespace > IGroup Interface : AddQuery Method
The query to add.
Add queryToAdd to this group child queries.
Syntax
IGroup AddQuery( 
   IQuery queryToAdd
)

Parameters

queryToAdd
The query to add.

Return Value

The new group object representing this group.
Exceptions
ExceptionDescription
queryToAdd doesn't have this as controller.
Remarks
Since code query objects are immutable, the old group object have been replaced in the parent hierarchy by the new returned group object.
Requirements

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

See Also

Reference

IGroup Interface
IGroup Members