RenameObject Method
Renames an object.
Syntax
[VB.NET] Public Sub RenameObject(ByVal ObjectName As String, ByVal NewName As String)
[C#] public void RenameObject(string objectName, string newName);
Remarks
This method renames the object named ObjectName to the name NewName. If NewName is already in use by an existing object, it will be overwritten if the current bucket has versioning enabled, or if the OverwriteOnRename configuration setting is set to True (default).