IItemMetadata::GetChangeVersion

Gets the version of the most recent change made to the item.

HRESULT GetChangeVersion(
  SYNC_VERSION * pCurrentVersion);

Parameters

  • pCurrentVersion
    [out] Returns the version of the most recent change made to the item.

Return Value

  • S_OK

  • S_FALSE if the change version has not been set.

  • E_POINTER

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. For information about documentation for other Sync Framework components, see the Microsoft Sync Framework Developer Center.

If IItemMetadata::SetChangeVersion was called to set the version value, but the change has not yet been saved by a call to IReplicaMetadata::SaveItemMetadata, GetChangeVersion returns the value that is contained in the IItemMetadata object and not the value that is stored in the metadata store.

See Also

Reference

IItemMetadata Interface