LockType byValue The lock is on the contents (for example, name). byAddress The lock is on the memory address.