VintaSoft Barcode .NET SDK 15.0: Documentation for Web developer
Vintasoft.Data Namespace / CloneableObjectStorageInMemory Class / LockItem(String) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
    LockItem(String) Method (CloneableObjectStorageInMemory)
    In This Topic
    Locks an item in data storage and returns the item.
    Syntax
    'Declaration
    
    Public Overridable Function LockItem( _
    ByVal key
    The item key.
    As String _
    ) As Object
    public virtual object LockItem(
    string key
    )
    public: virtual object* LockItem(
    string* key
    )
    public:
    virtual object^ LockItem(
    string^ key
    )

    Parameters

    key
    The item key.

    Return Value

    The locked item from data storage.
    Exceptions
    ExceptionDescription
    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.
    Requirements

    Target Platforms: .NET 8; .NET 7, .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5

    See Also