Share via


ISyncChangeBuilder::AddChangeUnitMetadata

Adds change unit metadata to an item change.

HRESULT AddChangeUnitMetadata(
  const BYTE * pbChangeUnitId, 
  const SYNC_VERSION * pChangeUnitVersion);

Parameters

  • pbChangeUnitId
    [in] The ID of the change unit to add to the item change.
  • pChangeUnitVersion
    [in] The version of the change unit change to add to the item change.

Return Value

  • S_OK

  • E_POINTER

  • E_OUTOFMEMORY

  • SYNC_E_ID_FORMAT_MISMATCH when the format of the change unit ID that is contained in pbChangeUnitId does not match the format that is specified by the ID format schema of the provider.

  • SYNC_E_INVALID_OPERATION if the item change to which to add this change unit to has SYNC_CHANGE_FLAG_DELETE or SYNC_CHANGE_FLAG_DOES_NOT_EXIST set as one of its flags.

See Also

Reference

ISyncChangeBuilder Interface
SYNC_VERSION Structure