Api.TryMove method
Try to navigate through an index. If the navigation succeeds this method returns true. If there is no record to navigate to this method returns false; an exception will be thrown for other errors.
Namespace: Microsoft.Isam.Esent.Interop
Assembly: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
Syntax
'Declaration
Public Shared Function TryMove ( _
sesid As JET_SESID, _
tableid As JET_TABLEID, _
move As JET_Move, _
grbit As MoveGrbit _
) As Boolean
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim move As JET_Move
Dim grbit As MoveGrbit
Dim returnValue As Boolean
returnValue = Api.TryMove(sesid, _
tableid, move, grbit)
public static bool TryMove(
JET_SESID sesid,
JET_TABLEID tableid,
JET_Move move,
MoveGrbit grbit
)
Parameters
sesid
Type: Microsoft.Isam.Esent.Interop.JET_SESIDThe session to use.
tableid
Type: Microsoft.Isam.Esent.Interop.JET_TABLEIDThe cursor to position.
move
Type: Microsoft.Isam.Esent.Interop.JET_MoveThe direction to move in.
grbit
Type: Microsoft.Isam.Esent.Interop.MoveGrbitMove options.
Return value
Type: System.Boolean
True if the move was successful.