Api.JetGotoSecondaryIndexBookmark method
Positions a cursor to an index entry that is associated with the specified secondary index bookmark. The secondary index bookmark must be used with the same index over the same table from which it was originally retrieved. The secondary index bookmark for an index entry can be retrieved using JetGotoSecondaryIndexBookmark(JET_SESID, JET_TABLEID, [], Int32, [], Int32, GotoSecondaryIndexBookmarkGrbit).
Namespace: Microsoft.Isam.Esent.Interop
Assembly: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
Syntax
'Declaration
Public Shared Sub JetGotoSecondaryIndexBookmark ( _
sesid As JET_SESID, _
tableid As JET_TABLEID, _
secondaryKey As Byte(), _
secondaryKeySize As Integer, _
primaryKey As Byte(), _
primaryKeySize As Integer, _
grbit As GotoSecondaryIndexBookmarkGrbit _
)
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim secondaryKey As Byte()
Dim secondaryKeySize As Integer
Dim primaryKey As Byte()
Dim primaryKeySize As Integer
Dim grbit As GotoSecondaryIndexBookmarkGrbitApi.JetGotoSecondaryIndexBookmark(sesid, _
tableid, secondaryKey, secondaryKeySize, _
primaryKey, primaryKeySize, grbit)
public static void JetGotoSecondaryIndexBookmark(
JET_SESID sesid,
JET_TABLEID tableid,
byte[] secondaryKey,
int secondaryKeySize,
byte[] primaryKey,
int primaryKeySize,
GotoSecondaryIndexBookmarkGrbit grbit
)
Parameters
sesid
Type: Microsoft.Isam.Esent.Interop.JET_SESIDThe session to use.
tableid
Type: Microsoft.Isam.Esent.Interop.JET_TABLEIDThe table cursor to position.
secondaryKey
Type: []The buffer that contains the secondary key.
secondaryKeySize
Type: System.Int32The size of the secondary key.
primaryKey
Type: []The buffer that contains the primary key.
primaryKeySize
Type: System.Int32The size of the primary key.
grbit
Type: Microsoft.Isam.Esent.Interop.GotoSecondaryIndexBookmarkGrbitOptions for positioning the bookmark.