void Rename( string newName )

robot_2Generated
code_blocksInput

Description

The Rename method is a member of the Editor.DirectoryEntry class. It allows you to change the name of a directory entry to a new specified name. This method is sealed, meaning it cannot be overridden in derived classes.

Usage

To use the Rename method, you need to have an instance of the Editor.DirectoryEntry class. Call the method with a string parameter representing the new name you want to assign to the directory entry.

Ensure that the new name is valid and does not conflict with existing directory entries in the same context.

Example

// Example of using the Rename method
Editor.DirectoryEntry directoryEntry = new Editor.DirectoryEntry();

// Rename the directory entry to "NewDirectoryName"
directoryEntry.Rename("NewDirectoryName");