Méthode Server2003Api. JetUpdate2
La fonction JetUpdate effectue une opération de mise à jour, notamment l’insertion d’une nouvelle ligne dans une table ou la mise à jour d’une ligne existante. La suppression d’une ligne de table s’effectue en appelant JetDelete (JET_SESID, JET_TABLEID).
Espace de noms : Microsoft. ISAM. esent. Interop. Server2003
Assembly : Microsoft. ISAM. esent. Interop (en Microsoft.Isam.Esent.Interop.dll)
Syntaxe
'Declaration
Public Shared Sub JetUpdate2 ( _
sesid As JET_SESID, _
tableid As JET_TABLEID, _
bookmark As Byte(), _
bookmarkSize As Integer, _
<OutAttribute> ByRef actualBookmarkSize As Integer, _
grbit As UpdateGrbit _
)
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim bookmark As Byte()
Dim bookmarkSize As Integer
Dim actualBookmarkSize As Integer
Dim grbit As UpdateGrbitServer2003Api.JetUpdate2(sesid, tableid, bookmark, _
bookmarkSize, actualBookmarkSize, _
grbit)
public static void JetUpdate2(
JET_SESID sesid,
JET_TABLEID tableid,
byte[] bookmark,
int bookmarkSize,
out int actualBookmarkSize,
UpdateGrbit grbit
)
Paramètres
sesid
Type : Microsoft.ISAM.esent.Interop.JET_SESIDSession qui a démarré la mise à jour.
TableID
Type : Microsoft.ISAM.esent.Interop.JET_TABLEIDCurseur à mettre à jour. Une mise à jour doit être préparée.
signet
Entrer []Retourne le signet de l’enregistrement mis à jour. Peut être Null.
bookmarkSize
Type : System. Int32Taille de la mémoire tampon du signet.
actualBookmarkSize
Type : System. Int32Retourne la taille réelle du signet.
grbit
Type : Microsoft. ISAM. esent. Interop. Server2003. UpdateGrbitOptions de mise à jour.
Notes
JetUpdate est la dernière étape de l’exécution d’une instruction INSERT ou Update. La mise à jour commence par appeler JetPrepareUpdate (JET_SESID, JET_TABLEID, JET_prep) , puis en appelant JetSetColumn (JET_SESID, JET_TABLEID, JET_COLUMNID, [ ] , Int32, SetColumnGrbit, JET_SETINFO) une ou plusieurs fois pour définir l’état de l’enregistrement. Enfin, JetUpdate2 (JET_SESID, JET_TABLEID, [ ] , Int32, Int32, UpdateGrbit) est appelé pour terminer l’opération de mise à jour. Les index sont mis à jour uniquement par JetUpdate ou et non pendant JetSetColumn.