Export (0) Print
Expand All

Moving Objects

To move an object within a domain, use the IADsContainer.MoveHere method.

ms677294.wedge(en-us,VS.85).gifTo move an object within a domain

  1. Bind to the IADs interface of the object to move.
  2. Get the ADsPath of the object to move from the IADs.ADsPath property.
  3. Bind to the IADsContainer interface of the container where the object will be moved to.
  4. Move the object with the IADsContainer.MoveHere method.

If an interface exists to the object that was moved, the interface is not valid after the object is moved because the directory object the interface represents no longer exists.

For more information and a code example that shows how to move an object, see Example Code for Moving an Object.

 

 

Show:
© 2014 Microsoft