Sdílet prostřednictvím


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
public abstract SyncVersion GetChangeUnitVersion (
    SyncId changeUnitId
)
public abstract function GetChangeUnitVersion (
    changeUnitId : SyncId
) : SyncVersion

Parameters

  • changeUnitId
    The ID of the change unit.

Return Value

The version of a change unit that is contained in this item.

Exceptions

Exception type 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
ItemMetadata Members
Microsoft.Synchronization.MetadataStorage Namespace