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
abstract SetChangeUnitVersion :
changeUnitId:SyncId *
changeUnitVersion:SyncVersion -> unit
public abstract function SetChangeUnitVersion(
changeUnitId : SyncId,
changeUnitVersion : SyncVersion
)
Parameters
- changeUnitId
Type: Microsoft.Synchronization.SyncId
The ID of the change unit.
- changeUnitVersion
Type: Microsoft.Synchronization.SyncVersion
The version of the change unit.
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.