Parameters
- queryToReplace
 - The query to replace.
 - newQuery
 - The query that replaces queryToReplace.
 
Return Value
The new group object representing this group.
| Exception | Description | 
|---|---|
| System.ArgumentException | queryToReplace must be a child query of this group and newQuery must not be a child query of this group. | 
| System.ArgumentException | newQuery doesn't have this as controller. | 
Target Platforms: Windows 11, 10, 8, 7and Linux, MacOS with net10.0, net9.0 or net8.0 installed