Udostępnij za pośrednictwem


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
'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;
}
/** @property */
public abstract SyncVersion get_ChangeVersion ()

/** @property */
public abstract void set_ChangeVersion (SyncVersion value)
public abstract function get ChangeVersion () : SyncVersion

public abstract function set ChangeVersion (value : SyncVersion)

Property Value

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