The JetUpdate function performs an update operation including inserting a new row into a table or updating an existing row. Deleting a table row is performed by calling JetDelete(JET_SESID, JET_TABLEID).
Namespace: Microsoft.Isam.Esent.Interop
Assembly: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
Syntax
'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
)
Parameters
-
sesid
Type: Microsoft.Isam.Esent.Interop.JET_SESIDThe session which started the update.
-
tableid
Type: Microsoft.Isam.Esent.Interop.JET_TABLEIDThe cursor to update. An update should be prepared.
-
bookmark
Type: []Returns the bookmark of the updated record. This can be null.
-
bookmarkSize
Type: System.Int32The size of the bookmark buffer.
-
actualBookmarkSize
Type: System.Int32Returns the actual size of the bookmark.
Remarks
JetUpdate is the final step in performing an insert or an update. The update is begun by calling JetPrepareUpdate(JET_SESID, JET_TABLEID, JET_prep) and then by calling JetSetColumn(JET_SESID, JET_TABLEID, JET_COLUMNID, [], Int32, SetColumnGrbit, JET_SETINFO) one or more times to set the record state. Finally, JetUpdate(JET_SESID, JET_TABLEID, [], Int32, Int32) is called to complete the update operation. Indexes are updated only by JetUpdate or and not during JetSetColumn.
See also
Reference
Microsoft.Isam.Esent.Interop namespace
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
