Use this method to lock a particular 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.
Error
This method failed to complete successfully.