Share via


Api.JetUpdate 方法 (JET_SESID、JET_TABLEID、Byte 、Int32、Int32)

JetUpdate 函数执行更新操作,包括将新行插入表中或更新现有行。 删除表行是通过调用 JetDelete (JET_SESID JET_TABLEID) 来执行的。

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

语法

'Declaration
Public Shared Sub JetUpdate ( _
    sesid As JET_SESID, _
    tableid As JET_TABLEID, _
    bookmark As Byte(), _
    bookmarkSize As Integer, _
    <OutAttribute> ByRef actualBookmarkSize As Integer _
)
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim bookmark As Byte()
Dim bookmarkSize As Integer
Dim actualBookmarkSize As IntegerApi.JetUpdate(sesid, tableid, bookmark, _
    bookmarkSize, actualBookmarkSize)
public static void JetUpdate(
    JET_SESID sesid,
    JET_TABLEID tableid,
    byte[] bookmark,
    int bookmarkSize,
    out int actualBookmarkSize
)

参数

  • 书签 (bookmark)
    类型:[]

    返回已更新记录的书签。 此项可为 null。

  • bookmarkSize
    类型: System.Int32

    书签缓冲区的大小。

  • actualBookmarkSize
    类型: System.Int32

    返回书签的实际大小。

备注

JetUpdate 是执行插入或更新的最后一步。 通过调用 JetPrepareUpdate (JET_SESID、JET_TABLEID、JET_prep) ,然后通过调用 JetSetColumn (JET_SESID、JET_TABLEID、JET_COLUMNID、[]、Int32、SetColumnGrbit JET_SETINFO) 一次或多次来设置记录状态,开始更新。 最后,调用 JetUpdate (JET_SESID、JET_TABLEID、[]、Int32、Int32) 来完成更新操作。 索引仅由 JetUpdate 更新,而不是在 JetSetColumn 期间更新。

另请参阅

参考

Api 类

Api 成员

JetUpdate 重载

Microsoft.Isam.Esent.Interop 命名空间