LockObject

The LockObject method of the Command interface locks an object to prevent multiple users from concurrently changing the object.

Applies To
clsDatabaseCommand  

Syntax

object.LockObject(LockType, LockDescription)

object
The object to lock.
LockType
One of the lock types of the OlapLockTypes enumeration.
LockDescription
A string containing a description of the lock, available to other applications attempting to obtain a lock.
Remarks

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.

See Also
About Decision Support Objects Using Decision Support Objects
UnlockObject Methods Cross-Reference

(c) 1988-1998 Microsoft Corporation. All Rights Reserved.