ItemMetadata::GetChangeUnitVersion Method

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

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

public:
virtual SyncVersion^ GetChangeUnitVersion(
	SyncId^ changeUnitId
) abstract

Parameters

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

Return Value

Type: Microsoft.Synchronization::SyncVersion
The version of a change unit that is contained in this item.

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: