mirror of
https://github.com/wagesj45/CapyKit.git
synced 2024-10-18 15:01:52 -05:00
36 lines
726 B
Markdown
36 lines
726 B
Markdown
# SetLock Method
|
|
|
|
|
|
Sets the lock on the item indicating that it is in use.
|
|
|
|
|
|
|
|
## Definition
|
|
**Namespace:** <a href="N_CapyKit">CapyKit</a>
|
|
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
|
|
|
|
**C#**
|
|
``` C#
|
|
public bool SetLock()
|
|
```
|
|
**F#**
|
|
``` F#
|
|
member SetLock : unit -> bool
|
|
```
|
|
|
|
|
|
|
|
#### Return Value
|
|
<a href="https://learn.microsoft.com/dotnet/api/system.boolean" target="_blank" rel="noopener noreferrer">Boolean</a>
|
|
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
|
|
<a href="T_CapyKit_PoolItem_1">PoolItem(T) Class</a>
|
|
<a href="N_CapyKit">CapyKit Namespace</a>
|