Api.JetUpdate method (JET_SESID, JET_TABLEID)
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 _
)
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEIDApi.JetUpdate(sesid, tableid)
public static void JetUpdate(
JET_SESID sesid,
JET_TABLEID tableid
)
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.
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.