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 (in Microsoft.Isam.Esent.Interop.dll)

語法

'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 命名空間