Windows7Api.JetPrereadKeys 方法 (JET_SESID、JET_TABLEID、Byte[][]、Int32、Int32、Int32、Int32、PrereadKeysGrbit)
如果具有指定键的记录不在缓冲区缓存中,则启动异步读取,以将记录引入数据库缓冲区缓存。
Namespace:Microsoft.Isam.Esent.Interop.Windows7
装配: Microsoft.Isam.Esent.Interop.dll) 中的 Microsoft.Isam.Esent.Interop (
语法
'Declaration
Public Shared Sub JetPrereadKeys ( _
sesid As JET_SESID, _
tableid As JET_TABLEID, _
keys As Byte()(), _
keyLengths As Integer(), _
keyIndex As Integer, _
keyCount As Integer, _
<OutAttribute> ByRef keysPreread As Integer, _
grbit As PrereadKeysGrbit _
)
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim keys As Byte()()
Dim keyLengths As Integer()
Dim keyIndex As Integer
Dim keyCount As Integer
Dim keysPreread As Integer
Dim grbit As PrereadKeysGrbitWindows7Api.JetPrereadKeys(sesid, tableid, _
keys, keyLengths, keyIndex, keyCount, _
keysPreread, grbit)
public static void JetPrereadKeys(
JET_SESID sesid,
JET_TABLEID tableid,
byte[][] keys,
int[] keyLengths,
int keyIndex,
int keyCount,
out int keysPreread,
PrereadKeysGrbit grbit
)
参数
sesid
类型: Microsoft.Isam.Esent.Interop.JET_SESID要使用的会话。
tableid
类型: Microsoft.Isam.Esent.Interop.JET_TABLEID要对其发出预读的表。
密钥
类型:[]要预读的键。 必须对键进行排序。
keyLengths
类型:[]要预读的键的长度。
keyIndex
类型: System.Int32要读取的键数组中第一个键的索引。
keyCount
类型: System.Int32要预读的最大键数。
keysPreread
类型: System.Int32返回实际预读的键数。
grbit
类型: Microsoft.Isam.Esent.Interop.Windows7.PrereadKeysGrbit预读选项。 用于指定预读的方向。
另请参阅
参考
反馈
https://aka.ms/ContentUserFeedback。
即将推出:在整个 2024 年,我们将逐步取消以“GitHub 问题”作为内容的反馈机制,并将其替换为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈