Partager via


Méthode Server2003Api.JetUpdate2

La fonction JetUpdate effectue une opération de mise à jour incluant 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
Assemblée: 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

  • signet
    Type : []

    Retourne le signet de l’enregistrement mis à jour. Peut être Null.

  • bookmarkSize
    Type : System.Int32

    Taille de la mémoire tampon des signets.

  • actualBookmarkSize
    Type : System.Int32

    Retourne la taille réelle du signet.

Notes

JetUpdate est la dernière étape de l’exécution d’une insertion ou d’une mise à jour. La mise à jour commence en appelant 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 non pendant JetSetColumn.

Voir aussi

Informations de référence

Classe Server2003Api

Membres Server2003Api

Espace de noms Microsoft.Isam.Esent.Interop.Server2003