VintaSoft Twain .NET SDK 15.3: Руководство для .NET разработчика
Vintasoft.Data Namespace / StreamDataStorage Class / LockItem Methods / LockItem(String,Boolean) Method
Синтаксис Exceptions Ремарки Требования Смотрите также
В этом разделе
    LockItem(String,Boolean) Метод (StreamDataStorage)
    В этом разделе
    Locks the stream in data storage and returns the locked stream.
    Синтаксис
    'Declaration
    
    Public Overloads Function LockItem( _
    ByVal key
    The stream filename or file URL.
    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
    )
    public: object* LockItem(
    string* key,
    bool isReadOnly
    )
    public:
    object^ LockItem(
    string^ key,
    bool isReadOnly
    )

    Parameters

    key
    The stream filename or file URL.
    isReadOnly
    A value indicating whether the stream must be locked in read-only mode.

    Return Value

    The stream, which was opened in read-write mode and without ability to share the file.
    Исключения
    ИсключениеОписание
    Thrown if key is null or empty.
    Ремарки

    Method creates a file if file does not exist.

    Требования

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

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