Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.



Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.