ItemMetadata.ChangeVersion Property

When overridden in a derived class, gets or sets the version of the most recent change made to the item.

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

Syntax

'Declaration
Public MustOverride Property ChangeVersion As SyncVersion
    Get
    Set
'Usage
Dim instance As ItemMetadata
Dim value As SyncVersion

value = instance.ChangeVersion

instance.ChangeVersion = value
public abstract SyncVersion ChangeVersion { get; set; }
public:
virtual property SyncVersion^ ChangeVersion {
    SyncVersion^ get () abstract;
    void set (SyncVersion^ value) abstract;
}
abstract ChangeVersion : SyncVersion with get, set
abstract function get ChangeVersion () : SyncVersion
abstract function set ChangeVersion (value : SyncVersion)

Property Value

Type: Microsoft.Synchronization.SyncVersion
The version of the most recent change made to the item. Returns a null reference (Nothing in Visual Basic) when the change version has not been set.

Exceptions

Exception Condition
ArgumentNullException

An attempt was made to set the value to a null reference (Nothing in Visual Basic).

Remarks

The change version for an item contains the key for the replica that made the most recent change to the item and the tick count for that replica when the change was made.

See Also

Reference

ItemMetadata Class

Microsoft.Synchronization.MetadataStorage Namespace