Edit

Windows7Api.JetPrereadKeys method (JET_SESID, JET_TABLEID, Byte[][], Int32 , Int32, Int32, PrereadKeysGrbit)

If the records with the specified keys are not in the buffer cache then start asynchronous reads to bring the records into the database buffer cache.

Namespace:  Microsoft.Isam.Esent.Interop.Windows7
Assembly:  Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)

Syntax

'Declaration
Public Shared Sub JetPrereadKeys ( _
    sesid As JET_SESID, _
    tableid As JET_TABLEID, _
    keys As Byte()(), _
    keyLengths 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 keyCount As Integer
Dim keysPreread As Integer
Dim grbit As PrereadKeysGrbitWindows7Api.JetPrereadKeys(sesid, tableid, _
    keys, keyLengths, keyCount, keysPreread, _
    grbit)
public static void JetPrereadKeys(
    JET_SESID sesid,
    JET_TABLEID tableid,
    byte[][] keys,
    int[] keyLengths,
    int keyCount,
    out int keysPreread,
    PrereadKeysGrbit grbit
)

Parameters

  • keys
    Type: []

    The keys to preread. The keys must be sorted.

  • keyLengths
    Type: []

    The lengths of the keys to preread.

  • keyCount
    Type: System.Int32

    The maximum number of keys to preread.

  • keysPreread
    Type: System.Int32

    Returns the number of keys to actually preread.

See also

Reference

Windows7Api class

Windows7Api members

JetPrereadKeys overload

Microsoft.Isam.Esent.Interop.Windows7 namespace