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
-
sesid
Type: Microsoft.Isam.Esent.Interop.JET_SESIDThe session to use.
-
tableid
Type: Microsoft.Isam.Esent.Interop.JET_TABLEIDThe table to issue the prereads against.
-
keys
Type: []The keys to preread. The keys must be sorted.
-
keyLengths
Type: []The lengths of the keys to preread.
-
keyCount
Type: System.Int32The maximum number of keys to preread.
-
keysPreread
Type: System.Int32Returns the number of keys to actually preread.
-
grbit
Type: Microsoft.Isam.Esent.Interop.Windows7.PrereadKeysGrbitPreread options. Used to specify the direction of the preread.
See also
Reference
Microsoft.Isam.Esent.Interop.Windows7 namespace
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
