Share via


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.

Return Value

  • S_OK

  • E_POINTER

Remarks

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.

Note

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.

See Also

Reference

IItemMetadata Interface