IItemMetadata::MarkAsDeleted

Marks an item as deleted from the item store.


HRESULT MarkAsDeleted(
  const SYNC_VERSION * pChangeVersion);

Parameters

pChangeVersion

[in] The version that is associated with the deletion.

  • S_OK

  • E_POINTER

To protect user data, when an item is marked as deleted, all user data, such as custom index fields, should be removed from the metadata for that item. This method removes all change unit version information and sets pChangeVersion as the item change version.

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: