Api.JetGetSecondaryIndexBookmark 메서드

커서의 현재 위치에서 보조 인덱스 항목에 대한 특수 책갈피를 검색합니다. 그런 다음 이 책갈피를 사용하여 JetGotoSecondaryIndexBookmark를 사용하여 해당 커서의 위치를 동일한 인덱스 항목으로 효율적으로 변경할 수 있습니다. 이는 중복 키가 포함되거나 동일한 레코드에 대한 여러 인덱스 항목이 포함된 보조 인덱스의 위치를 변경할 때 가장 유용합니다.

네임스페이스:Microsoft.Isam.Esent.Interop
어셈블리: Microsoft.Isam.Esent.Interop(Microsoft.Isam.Esent.Interop.dll)

구문

'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
)

매개 변수

  • secondaryKey
    형식: []

    보조 키에 대한 출력 버퍼입니다.

  • secondaryKeySize
    형식: System.Int32

    보조 키 버퍼의 크기입니다.

  • actualSecondaryKeySize
    형식: System.Int32

    보조 키의 크기를 반환합니다.

  • primaryKey
    형식: []

    기본 키에 대한 출력 버퍼입니다.

  • primaryKeySize
    형식: System.Int32

    기본 키 버퍼의 크기입니다.

  • actualPrimaryKeySize
    형식: System.Int32

    기본 키의 크기를 반환합니다.

추가 정보

참조

Api 클래스

Api 멤버

Microsoft.Isam.Esent.Interop 네임스페이스