IItemMetadata::ResurrectDeletedItem

Restores an item that was previously marked as deleted in the metadata store.


HRESULT ResurrectDeletedItem();

  • S_OK

  • SYNC_E_INVALIDOPERATION if the item is not marked as deleted.

Because the IItemMetadata::MarkAsDeleted method removes all change unit version information, an item that is restored by using ResurrectDeletedItem will not contain any change unit versions.

NoteNote

This method does not save the change to the store. IReplicaMetadata::SaveItemMetadata must be called to save all changes that have been made to the IItemMetadata properties.

Show: