DirectoryEntry.Rename Method (String)

 

Changes the name of this DirectoryEntry object.

Namespace:   System.DirectoryServices
Assembly:  System.DirectoryServices (in System.DirectoryServices.dll)

public void Rename(
	string newName
)

Parameters

newName
Type: System.String

The new name of the entry.

System_CAPS_noteNote

This will also affect the path that is used to refer to this entry.

If UsePropertyCache is true, be sure to call the CommitChanges method on the new object to make the move permanent.

.NET Framework
Available since 1.1
Return to top
Show: