AcquireLock(IDataObject, Int32, LockTypes):IDataObjectLock
generates a new lock for a data object.
This method generates a new lock for a data object. A lock is always exerted by another data object on the data object to be locked. This means a data object cannot be locked by itself in order to lock procedures.
Return type: Onion.Client.IDataObjectLock
Parameter
- target
Type: Onion.Client.IDataObject
This parameter is the data object for which a lock is to be generated.
- sourceId
Type: System.Int32
This parameter is the Id of a data object which is to exert the lock on a data object.
- types
Type: LockTypes
This parameter defines the kind of locks. One or more locks can be indicated here, which one data object is to exert on another data object.