combit List & Label 24 - .NET Online Web Help
LockItem Method


combit.ListLabel24.Repository Namespace > IRepository Interface : LockItem Method

ID of the repository item to lock.

Gets called when an item of the repository is loaded to be edited (i.e. project files) to lock it for exclusive access.

Syntax
'Declaration
 
Function LockItem( _
   ByVal id As String _
) As Boolean
bool LockItem( 
   string id
)
bool LockItem( 
   String^ id
) 

Parameters

id

ID of the repository item to lock.

Return Value

Return false in case the item is already locked by an other user (no blocking lock!), or true if the lock was acquired or is not needed.
Remarks

Usually other users should not be able to edit the item at the same time. It is advisable to implement a fallback in case UnlockItem does not get called (e.g. due to an error).

Requirements

Platforms: Windows Vista - Windows 10 Version 1809, Windows Server 2008 - 2016

See Also

Reference

IRepository Interface
IRepository Members