Share via


Api.TryMove 方法

尝试浏览索引。 如果导航成功,则此方法返回 true。 如果没有记录可导航到此方法,则返回 false;对于其他错误,将引发异常。

Namespace:Microsoft.Isam.Esent.Interop
装配: Microsoft.Isam.Esent.Interop.dll) 中的 Microsoft.Isam.Esent.Interop (

语法

'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

返回值

类型: System.Boolean
如果移动成功,则为 True。

另请参阅

参考

Api 类

Api 成员

Microsoft.Isam.Esent.Interop 命名空间