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
-
sesid
Type: Microsoft.Isam.Esent.Interop.JET_SESIDThe session to use.
-
tableid
Type: Microsoft.Isam.Esent.Interop.JET_TABLEIDThe cursor to retrieve the bookmark from.
-
bookmark
Type: []Buffer to contain the bookmark.
-
bookmarkSize
Type: System.Int32Size of the bookmark buffer.
-
actualBookmarkSize
Type: System.Int32Returns the actual size of the bookmark.
See also
Reference
Microsoft.Isam.Esent.Interop namespace
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
