Api.TrySeek method
Efficiently positions a cursor to an index entry that matches the search criteria specified by the search key in that cursor and the specified inequality. A search key must have been previously constructed using JetMakeKey.
Namespace: Microsoft.Isam.Esent.Interop
Assembly: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
Syntax
'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
)
Parameters
sesid
Type: Microsoft.Isam.Esent.Interop.JET_SESIDThe session to use.
tableid
Type: Microsoft.Isam.Esent.Interop.JET_TABLEIDThe cursor to position.
grbit
Type: Microsoft.Isam.Esent.Interop.SeekGrbitSeek option.
Return value
Type: System.Boolean
True if a record matching the criteria was found.