Api.JetGetLS 方法
使应用程序能够检索与游标关联的上下文句柄称为“本地存储”或与该游标关联的表。 以前必须使用 JetSetLS (JET_SESID、JET_TABLEID、JET_LS、LsGrbit) 设置此上下文句柄。 JetGetLS 还可用于同时获取游标或表的当前上下文句柄,并重置该上下文句柄。
Namespace:Microsoft.Isam.Esent.Interop
装配: Microsoft.Isam.Esent.Interop.dll) 中的 Microsoft.Isam.Esent.Interop (
语法
'Declaration
Public Shared Sub JetGetLS ( _
sesid As JET_SESID, _
tableid As JET_TABLEID, _
<OutAttribute> ByRef ls As JET_LS, _
grbit As LsGrbit _
)
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim ls As JET_LS
Dim grbit As LsGrbitApi.JetGetLS(sesid, tableid, ls, _
grbit)
public static void JetGetLS(
JET_SESID sesid,
JET_TABLEID tableid,
out JET_LS ls,
LsGrbit grbit
)
参数
sesid
类型: Microsoft.Isam.Esent.Interop.JET_SESID要使用的会话。
tableid
类型: Microsoft.Isam.Esent.Interop.JET_TABLEID要使用的游标。
ls
类型: Microsoft.Isam.Esent.Interop.JET_LS返回检索到的上下文句柄。
grbit
类型: Microsoft.Isam.Esent.Interop.LsGrbit检索选项。