IItemMetadata::GetCreationVersion

Gets the creation version of the item.

HRESULT GetCreationVersion(
  SYNC_VERSION * pCreationVersion);

Parameters

  • pCreationVersion
    [out] Returns the creation version of the item.

Return Value

  • S_OK.

  • S_FALSE if the creation version has not been set.

  • E_POINTER.

Remarks

The creation version contains the key for the replica that created the item and the tick count at that replica when the item was created in the item store.

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