ItemMetadata::SetMergeWinnerIdOnDeletedItem Method

When overridden in a derived class, sets the winning item ID on a merge tombstone.

Namespace:  Microsoft.Synchronization.MetadataStorage
Assembly:  Microsoft.Synchronization.MetadataStorage (in Microsoft.Synchronization.MetadataStorage.dll)

public:
virtual void SetMergeWinnerIdOnDeletedItem(
	SyncId^ winnerId
) abstract

Parameters

winnerId
Type: Microsoft.Synchronization::SyncId
The ID of the winning item, which is the item that contains the merged data.

A merge tombstone is created when a constraint conflict is resolved by merging the two items in conflict. When a constraint conflict is resolved by merging, the smaller of the item IDs is chosen as the winning item ID. The winning item ID is used to identify the merged item. The merge tombstone tracks that the losing item ID identifies the same item as the winning item ID in the synchronization community. The metadata for a merge tombstone is the same as that for a deleted item tombstone, with the addition of the winning item ID.

Show: