Use this method to lock the workspace. Locking the workspace prevents other processes from locking the object describing the workspace while you are working with it. The lock is released when you end the current transaction.
Call object.Lock
The Lock method syntax has the following parts.
Part | Description |
object | An object expression that evaluates to a Workspace object. |
This member is exposed by the IRepositoryObjectVersion interface, a non-default interface for this object. For details on how to access a member of an interface that is not the default interface, see Accessing Automation Object Members.