Api.JetGetLock 方法

显式保留更新行、写入锁或显式阻止任何其他会话更新行的能力,即读取锁。 通常,由于更新行,行写入锁是隐式获取的。 由于记录版本控制,通常不需要读取锁。 但是,在某些情况下,事务可能需要显式锁定行以强制序列化,或确保后续操作成功。

Namespace:Microsoft.Isam.Esent.Interop
装配: Microsoft.Isam.Esent.Interop.dll) 中的 Microsoft.Isam.Esent.Interop (

语法

'Declaration
Public Shared Sub JetGetLock ( _
    sesid As JET_SESID, _
    tableid As JET_TABLEID, _
    grbit As GetLockGrbit _
)
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim grbit As GetLockGrbitApi.JetGetLock(sesid, tableid, grbit)
public static void JetGetLock(
    JET_SESID sesid,
    JET_TABLEID tableid,
    GetLockGrbit grbit
)

参数

另请参阅

参考

Api 类

Api 成员

Microsoft.Isam.Esent.Interop 命名空间