VintaSoft Imaging .NET SDK 15.1: Документация для .NET разработчика
Vintasoft.Data Namespace / CloneableObjectStorageInMemory Class / LockItem Methods / LockItem(String,Boolean) Method
Синтаксис Exceptions Требования Смотрите также
В этом разделе
LockItem(String,Boolean) Метод (CloneableObjectStorageInMemory)
В этом разделе
Locks an item in data storage and returns the item.
Синтаксис
'Declaration

Public Overloads Function LockItem( _
ByVal key
The item key.
As System.String, _
ByVal isReadOnly
A value indicating whether the stream must be locked in read-only mode.
As Boolean _
) As System.Object
public System.Object LockItem(
System.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.
Исключения
ИсключениеОписание
Thrown if key is null or empty.
Thrown if this instance is disposed.
Thrown if item with specified key does not exist.
Thrown if item with specified key is already locked.
Требования

Целевые платформы: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

Смотрите также