Perhaps this example will be more clear:
DirectoryEntry theObjectToMove = new DirectoryEntry("LDAP://CN=jdoe,CN=Users,DC=acme,DC=com"); DirectoryEntry theNewParent = new DirectoryEntry("LDAP://OU=Something,DC=acme,DC=com"); theObjectToMove.MoveTo(theNewParent);
An overload of MoveTo with two parameters also indicates a new name for the object, and I think this is redundant in your example.
source share