NDepend.API Documentation
DoInsertQuery Method
NDepend.CodeQuery Namespace > IController Interface : DoInsertQuery Method
The query to insert.
The parent group under which the query is inserted.
The index in groupParentOldObj children queries, at which queryToInsert is inserted.
Insert queryToInsert under groupParentOldObj.
Syntax

Parameters

queryToInsert
The query to insert.
groupParentOldObj
The parent group under which the query is inserted.
index
The index in groupParentOldObj children queries, at which queryToInsert is inserted.
Exceptions
ExceptionDescription
Can't perform the insertion operation on these arguments.
Please check queryToInsert with the method CanInsertQueryUnder before calling this method.
index must be a positive or zero integer, lower or equals to groupParentOldObj.IGroup.ChildQueriesCount.
Requirements

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

See Also

Reference

IController Interface
IController Members