Export (0) Print
Expand All

DirectoryEntry.Rename Method

Changes the name of this DirectoryEntry object.

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

public void Rename(
	string newName


Type: System.String

The new name of the entry.


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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft