Edit

Share via


Api.JetGetBookmark method

Retrieves the bookmark for the record that is associated with the index entry at the current position of a cursor. This bookmark can then be used to reposition that cursor back to the same record using JetGotoBookmark(JET_SESID, JET_TABLEID, [], Int32). The bookmark will be no longer than BookmarkMost bytes. Also see GetBookmark(JET_SESID, JET_TABLEID).

Namespace:  Microsoft.Isam.Esent.Interop
Assembly:  Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)

Syntax

'Declaration
Public Shared Sub JetGetBookmark ( _
    sesid As JET_SESID, _
    tableid As JET_TABLEID, _
    bookmark As Byte(), _
    bookmarkSize As Integer, _
    <OutAttribute> ByRef actualBookmarkSize As Integer _
)
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim bookmark As Byte()
Dim bookmarkSize As Integer
Dim actualBookmarkSize As IntegerApi.JetGetBookmark(sesid, tableid, _
    bookmark, bookmarkSize, actualBookmarkSize)
public static void JetGetBookmark(
    JET_SESID sesid,
    JET_TABLEID tableid,
    byte[] bookmark,
    int bookmarkSize,
    out int actualBookmarkSize
)

Parameters

  • bookmark
    Type: []

    Buffer to contain the bookmark.

  • bookmarkSize
    Type: System.Int32

    Size of the bookmark buffer.

  • actualBookmarkSize
    Type: System.Int32

    Returns the actual size of the bookmark.

See also

Reference

Api class

Api members

Microsoft.Isam.Esent.Interop namespace