# SetLock Method Sets the lock on the item indicating that it is in use. ## Definition **Namespace:** CapyKit **Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0 **C#** ``` C# public bool SetLock() ``` **F#** ``` F# member SetLock : unit -> bool ``` #### Return Value Boolean true if the item is locked successfully, false if it fails. ## Remarks If the item is already locked, an error event is emitted. ## See Also #### Reference PoolItem(T) Class CapyKit Namespace