Share via


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)

Syntax

'Declaration
Public MustOverride Function GetChangeUnitVersion ( _
    changeUnitId As SyncId _
) As SyncVersion
'Usage
Dim instance As ItemMetadata
Dim changeUnitId As SyncId
Dim returnValue As SyncVersion

returnValue = instance.GetChangeUnitVersion(changeUnitId)
public abstract SyncVersion GetChangeUnitVersion(
    SyncId changeUnitId
)
public:
virtual SyncVersion^ GetChangeUnitVersion(
    SyncId^ changeUnitId
) abstract
abstract GetChangeUnitVersion : 
        changeUnitId:SyncId -> SyncVersion 
public abstract function GetChangeUnitVersion(
    changeUnitId : SyncId
) : SyncVersion

Parameters

Return Value

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

Exceptions

Exception Condition
ArgumentNullException

changeUnitId is a null reference (Nothing in Visual Basic).

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.

Remarks

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.

See Also

Reference

ItemMetadata Class

Microsoft.Synchronization.MetadataStorage Namespace