ItemMetadata::MarkAsDeleted Method
When overridden in a derived class, marks an item as deleted from the item store.
Assembly: Microsoft.Synchronization.MetadataStorage (in Microsoft.Synchronization.MetadataStorage.dll)
| Exception | Condition |
|---|---|
| ArgumentNullException | changeVersion is a nullptr. |
An item that is marked as deleted is also known as a tombstone.
Marking an item as deleted indicates that the item has been deleted from the item store. The metadata for the item continues to exist in the metadata store until tombstones are cleaned up.
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. When an item is marked as deleted, the metadata storage service automatically removes all change unit information for the item.
Show: