DirectoryEntry.Rename Method (String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: