Metode Api.JetGetSecondaryIndexBookmark

Mengambil bookmark khusus untuk entri indeks sekunder pada posisi kursor saat ini. Bookmark ini kemudian dapat digunakan untuk memposisikan ulang kursor secara efisien kembali ke entri indeks yang sama menggunakan JetGotoSecondaryIndexBookmark. Ini paling berguna saat memposisikan ulang pada indeks sekunder yang berisi kunci duplikat atau yang berisi beberapa entri indeks untuk rekaman yang sama.

Namespace:Microsoft.Isam.Esent.Interop
Majelis: Microsoft.Isam.Esent.Interop (dalam Microsoft.Isam.Esent.Interop.dll)

Sintaks

'Declaration
Public Shared Sub JetGetSecondaryIndexBookmark ( _
    sesid As JET_SESID, _
    tableid As JET_TABLEID, _
    secondaryKey As Byte(), _
    secondaryKeySize As Integer, _
    <OutAttribute> ByRef actualSecondaryKeySize As Integer, _
    primaryKey As Byte(), _
    primaryKeySize As Integer, _
    <OutAttribute> ByRef actualPrimaryKeySize As Integer, _
    grbit As GetSecondaryIndexBookmarkGrbit _
)
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim secondaryKey As Byte()
Dim secondaryKeySize As Integer
Dim actualSecondaryKeySize As Integer
Dim primaryKey As Byte()
Dim primaryKeySize As Integer
Dim actualPrimaryKeySize As Integer
Dim grbit As GetSecondaryIndexBookmarkGrbitApi.JetGetSecondaryIndexBookmark(sesid, _
    tableid, secondaryKey, secondaryKeySize, _
    actualSecondaryKeySize, primaryKey, _
    primaryKeySize, actualPrimaryKeySize, _
    grbit)
public static void JetGetSecondaryIndexBookmark(
    JET_SESID sesid,
    JET_TABLEID tableid,
    byte[] secondaryKey,
    int secondaryKeySize,
    out int actualSecondaryKeySize,
    byte[] primaryKey,
    int primaryKeySize,
    out int actualPrimaryKeySize,
    GetSecondaryIndexBookmarkGrbit grbit
)

Parameter

  • secondaryKey
    Jenis: []

    Buffer output untuk kunci sekunder.

  • secondaryKeySize
    Jenis: System.Int32

    Ukuran buffer kunci sekunder.

  • actualSecondaryKeySize
    Jenis: System.Int32

    Mengembalikan ukuran kunci sekunder.

  • primaryKey
    Jenis: []

    Buffer output untuk kunci primer.

  • primaryKeySize
    Jenis: System.Int32

    Ukuran buffer kunci primer.

  • actualPrimaryKeySize
    Jenis: System.Int32

    Mengembalikan ukuran kunci primer.

Lihat juga

Referensi

Kelas Api

Anggota api

Namespace Microsoft.Isam.Esent.Interop