Windows7Api.JetPrereadKeys 方法 (JET_SESID、JET_TABLEID、Byte[]、Int32、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
)

参数

  • 密钥
    类型: []

    要预读的键。 必须对键进行排序。

  • keyLengths
    类型: []

    要预读的键的长度。

  • keyIndex
    类型: System.Int32

    要读取的键数组中第一个键的索引。

  • keyCount
    类型: System.Int32

    要预读的最大键数。

  • keysPreread
    类型: System.Int32

    返回实际预读的键数。

另请参阅

参考

Windows7Api 类

Windows7Api 成员

JetPrereadKeys 重载

Microsoft.Isam.Esent.Interop.Windows7 命名空间