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

    Parameters

    key
    The stream filename.

    Return Value

    The stream, which was opened in read-write mode and without ability to share the file.
    Exceptions
    ExceptionDescription
    Thrown if key is null or empty.
    Remarks

    Method creates a file if file does not exist.

    Requirements

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

    See Also