Api.JetGetSecondaryIndexBookmark 方法

擷取資料指標目前位置之次要索引項目目的特殊書簽。 接著,此書簽可用來使用 JetGotoSecondaryIndexBookmark,有效率地將該游標重新置放回相同的索引項目目。 在包含重複索引鍵或包含相同記錄之多個索引項目的次要索引上重新置放時,這非常有用。

Namespace:Microsoft.Isam.Esent.Interop
裝配: microsoft.Isam.Esent.Interop (in 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 命名空間