IGroupOfGroups ReplaceGroup( IGroup groupToReplace, IGroup newGroup )
Parameters
- groupToReplace
 - The group to replace.
 - newGroup
 - The group that replaces groupToReplace.
 
Return Value
The new group of groups object representing this group of groups.
IGroupOfGroups ReplaceGroup( IGroup groupToReplace, IGroup newGroup )
| Exception | Description | 
|---|---|
| System.ArgumentException | groupToReplace and newGroup must both be different than this group of groups. Also groupToReplace must be a child group of this group of groups and newGroup must not be a child group of this group of groups. Also newGroup must have the same controller as this.  | 
Target Platforms: Windows 11, 10, 8, 7and Linux, MacOS with net10.0, net9.0 or net8.0 installed