ItemMetadata::SetChangeUnitVersion Method

When overridden in a derived class, sets the version of a change unit that is contained in this item.

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

public:
virtual void SetChangeUnitVersion(
	SyncId^ changeUnitId, 
	SyncVersion^ changeUnitVersion
) abstract

Parameters

changeUnitId
Type: Microsoft.Synchronization::SyncId
The ID of the change unit.
changeUnitVersion
Type: Microsoft.Synchronization::SyncVersion
The version of the change unit.

ExceptionCondition
ArgumentNullException

changeUnitId is a nullptr.

InvalidOperationException

The item is marked as deleted.

SyncIdFormatMismatchException

The format of changeUnitId does not match the format that is specified in SyncIdFormatGroup from the provider.

The change unit version for a change unit contains the key for the replica that made the most recent change to the change unit and the tick count for that replica when the change was made.

Show: