IADsContainer::MoveHere

Moves the specified object to this ADSI container. Moves can only be made within that container in one Active Directory provider's implementation, not across directory systems.

HRESULT IADsContainer::MoveHere(
  BSTR bstrSourceObject,  //Name of the object to move
  BSTR bstrNewName,       //Name for the new object
  IDispatch ** ppNewObject     //Interface on the new object
);
 

Parameter

bstrSourceObject
[in] The string specifying the object to be moved.
bstrNewName
[in] A string that names the new object within the container.
ppbstrNewObject
[out] Indirect pointer to the IDispatch interface on the moved object.

Return Values

This method supports the standard return values E_FAIL and E_UNEXPECTED, as well as the following:

S_OK
The specified object has been successfully moved to this container.

QuickInfo

  Windows NT: Use version 4.0 and later.
  Windows CE: Unsupported.
  Header: Declared in iads.h.

See Also

IADsContainer::CopyHere