Api.TrySetIndexRange 方法
暂时将游标可以使用 JetMove 走动的索引条目集限制为从当前索引项开始并在索引项处结束的索引条目,该索引项与该游标中的搜索键指定的搜索条件和指定的绑定条件匹配。 以前必须使用 JetMakeKey 构造搜索键。 如果索引范围非空,则返回 true;否则返回 false。
Namespace:Microsoft.Isam.Esent.Interop
装配: Microsoft.Isam.Esent.Interop.dll) 中的 Microsoft.Isam.Esent.Interop (
语法
'Declaration
Public Shared Function TrySetIndexRange ( _
sesid As JET_SESID, _
tableid As JET_TABLEID, _
grbit As SetIndexRangeGrbit _
) As Boolean
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim grbit As SetIndexRangeGrbit
Dim returnValue As Boolean
returnValue = Api.TrySetIndexRange(sesid, _
tableid, grbit)
public static bool TrySetIndexRange(
JET_SESID sesid,
JET_TABLEID tableid,
SetIndexRangeGrbit grbit
)
参数
sesid
类型: Microsoft.Isam.Esent.Interop.JET_SESID要使用的会话。
tableid
类型: Microsoft.Isam.Esent.Interop.JET_TABLEID要定位的光标。
grbit
类型: Microsoft.Isam.Esent.Interop.SetIndexRangeGrbit“查找”选项。
返回值
类型: System.Boolean
如果查找成功,则为 True。