Move(IDataObject, String):Void
Moves the current data object under another data object and in doing so renames the current data object.
It is important for a data object that follows the schema of the current data object to be allowed to be created underneath the new parent data object.
Parameter
- newParent
Type: Onion.Client.IDataObject
This parameter indicates the data object under which the current data object is to be moved.
- newName
Type: System.String
By means of this parameter, the current data object can be renamed at the time of the moving procedure.
This can be useful if the current name of the data object is already present in the new level or the new name is present in the previous level. The moving procedure can therefore get more complex without this method.
If the newly assigned name is already present in the target level, then a DataObjectAlreadyExistsException is triggered. The entire procedure is aborted in this case.