Return to doc.sitecore.com

Valid for Sitecore 5.2, 5.1.1
  MoveItem
Prev Next

MoveItem moves an item to a different parent in the content structure.  The method returns True if the move was successful, False otherwise.

bool MoveItem(
  ItemDefinition item,
  ItemDefinition destination,
  CallContext context
)

Sitecore calls the MoveItem method to move the item in the content structure, which is equivalent to changing the item’s parent ID to the destination.ID.


Prev Next