Udostępnij za pośrednictwem


IItemMetadata::GetChangeUnitVersion

Gets the version of a change unit that is contained in the item.

HRESULT GetChangeUnitVersion(
  BYTE * pbChangeUnitId,
  SYNC_VERSION * pChangeVersion);

Parameters

  • pbChangeUnitId
    [in] The ID of the change unit.
  • pChangeVersion
    [out] Returns the version of the change unit identified by pbChangeUnitId.

Return Value

  • S_OK.

  • S_FALSE if the change unit ID does not exist.

  • E_POINTER.

  • SYNC_E_INVALIDOPERATION if the item is a tombstone.

Remarks

The change unit version 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.

If IItemMetadata::SetChangeUnitVersion was called to set the version value, but the change has not yet been saved by a call to IReplicaMetadata::SaveItemMetadata, GetChangeUnitVersion 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