Delen via


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)

Syntax

'Declaration
Public MustOverride Sub SetChangeUnitVersion ( _
    changeUnitId As SyncId, _
    changeUnitVersion As SyncVersion _
)
'Usage
Dim instance As ItemMetadata
Dim changeUnitId As SyncId
Dim changeUnitVersion As SyncVersion

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

Parameters

  • changeUnitId
    The ID of the change unit.
  • changeUnitVersion
    The version of the change unit.

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