The LockObject method of the Command interface locks an object to prevent multiple users from concurrently changing the object.
clsDatabaseCommand |
object.LockObject(LockType, LockDescription)
There are four types of locks defined by the OlapLockTypes enumeration: olapLockExtendedRead, olapLockProcess, olapLockRead, and olapLockWrite. For more information, see Enumerations.
Lock type | Applies to |
---|---|
olapLockExtendedRead | Not applicable for command objects. This lock applies only to objects that can be processed. |
olapLockProcess | Not applicable for command objects. This lock applies only to objects that can be processed. |
olapLockRead | This lock applies to all objects. |
olapLockWrite | This lock applies to all objects. |
For a complete discussion of object locking, see the LockObject method in MDStore Interface.
About Decision Support Objects | Using Decision Support Objects |
UnlockObject | Methods Cross-Reference |