Renames the current object.
- newName (String)
- the new name that should be set for the current object.
The actual name of the current object after the attempt to rename it. It may happen that Windows does not allow the rename, then the old name will be returned. Otherwise the new name should be returned.
| Exception | Condition |
|---|---|
| ArgumentNullException | if null was passed for the newName parameter |