Share via


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)

Syntax

'Declaration
Public MustOverride Sub SetMergeWinnerIdOnDeletedItem ( _
    winnerId As SyncId _
)
'Usage
Dim instance As ItemMetadata
Dim winnerId As SyncId

instance.SetMergeWinnerIdOnDeletedItem(winnerId)
public abstract void SetMergeWinnerIdOnDeletedItem(
    SyncId winnerId
)
public:
virtual void SetMergeWinnerIdOnDeletedItem(
    SyncId^ winnerId
) abstract
abstract SetMergeWinnerIdOnDeletedItem : 
        winnerId:SyncId -> unit 
public abstract function SetMergeWinnerIdOnDeletedItem(
    winnerId : SyncId
)

Parameters

Remarks

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.

See Also

Reference

ItemMetadata Class

Microsoft.Synchronization.MetadataStorage Namespace