Entry. Rename(String) Method
Changes the name of this DirectoryEntry object.
public: void Rename(System::String ^ newName);
public void Rename (string newName);
member this.Rename : string -> unit
Public Sub Rename (newName As String)
The new name of the entry.
This will also affect the path that is used to refer to this entry.