NDepend.API Documentation
ReplaceQuery Method
NDepend.CodeQuery Namespace > IGroup Interface : ReplaceQuery Method
The query to replace.
The query that replaces queryToReplace.
Replace queryToReplace with newQuery.
Syntax

Parameters

queryToReplace
The query to replace.
newQuery
The query that replaces queryToReplace.

Return Value

The new group object representing this group.
Exceptions
ExceptionDescription
queryToReplace must be a child query of this group and newQuery must not be a child query of this group.
newQuery 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