Use this method to lock a particular Microsoft® Repository item. Locking the item prevents other processes from locking the item while you are working with it. The lock is released when you end the current transaction.
HRESULT Lock(void);
Return Value
S_OK
The method completed successfully.
This method failed to complete successfully.