VintaSoft Barcode .NET SDK 16.0: Documentation for .NET developer
Vintasoft.Data Namespace / IDataStorage Interface / LockItem Methods / LockItem(String,Boolean) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
LockItem(String,Boolean) Method (IDataStorage)
In This Topic
Locks an item in data storage and returns the item.
Syntax
'Declaration

Public Overloads Function LockItem( _
ByVal key
The item key.
As String, _
ByVal isReadOnly
A value indicating whether the stream must be locked in read-only mode.
As Boolean _
) As Object
public object LockItem(
string key,
bool isReadOnly
)

Parameters

key
The item key.
isReadOnly
A value indicating whether the stream must be locked in read-only mode.

Return Value

The locked item from data storage.
Exceptions
ExceptionDescription
Thrown if key is null.
Thrown if item with specified key is already locked.
Requirements

Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also