Api.JetGetSecondaryIndexBookmark メソッド

カーソルの現在位置にあるセカンダリ インデックス エントリの特別なブックマークを取得します。 このブックマークを使用すると、JetGotoSecondaryIndexBookmark を使用して、カーソルを同じインデックス エントリに効率的に再配置できます。 これは、重複するキーを含むセカンダリ インデックス、または同じレコードの複数のインデックス エントリを含むセカンダリ インデックスの位置を変更する場合に最も便利です。

Namespace: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 名前空間