title: Moving an object in Active Directory with c#
body: <p>so the following code is supposed to move an object in active directory.  I see what is going on here but i dont quite understand it.  all i see is the old location and new location.  I dont see how I actually grab the object.  I have several objects in both locations, where does this code say what specific object is to be moved?  I dont see where in the LDAP + objectLocation string that there is an object.    </p>
  
  <pre><code>DirectoryEntry eLocation = new DirectoryEntry("LDAP://" + objectLocation);
  DirectoryEntry nLocation = new DirectoryEntry("LDAP://" + newLocation);
  string newName = eLocation.Name;
  eLocation.MoveTo(nLocation, newName);
  nLocation.Close();
  eLocation.Close();
  </code></pre>