API. TrySeek, méthode
Positionne efficacement un curseur sur une entrée d’index qui correspond aux critères de recherche spécifiés par la clé de recherche dans ce curseur et l’inégalité spécifiée. Une clé de recherche doit avoir été construite précédemment à l’aide de JetMakeKey.
Espace de noms : Microsoft. ISAM. esent. Interop
Assembly : Microsoft. ISAM. esent. Interop (en Microsoft.Isam.Esent.Interop.dll)
Syntaxe
'Declaration
Public Shared Function TrySeek ( _
sesid As JET_SESID, _
tableid As JET_TABLEID, _
grbit As SeekGrbit _
) As Boolean
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim grbit As SeekGrbit
Dim returnValue As Boolean
returnValue = Api.TrySeek(sesid, _
tableid, grbit)
public static bool TrySeek(
JET_SESID sesid,
JET_TABLEID tableid,
SeekGrbit grbit
)
Paramètres
sesid
Type : Microsoft.ISAM.esent.Interop.JET_SESIDSession à utiliser.
TableID
Type : Microsoft.ISAM.esent.Interop.JET_TABLEIDCurseur à positionner.
grbit
Type : Microsoft. ISAM. esent. Interop. SeekGrbitOption Seek.
Valeur de retour
Type : System. Boolean
True si un enregistrement correspondant au critère a été trouvé.