Api.JetGetBookmark 方法
擷取與游標目前位置之索引項目目相關聯的記錄書簽。 接著,您可以使用 JetGotoBookmark (JET_SESID、JET_TABLEID、[]、Int32) 將游標重新置放回相同的記錄。 書簽將不再超過 BookmarkMost 位元組。 另請參閱 GetBookmark (JET_SESID,JET_TABLEID) 。
Namespace:Microsoft.Isam.Esent.Interop
裝配: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
語法
'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
)
參數
sesid
類型: Microsoft.Isam.Esent.Interop.JET_SESID要使用的會話。
tableid
類型: Microsoft.Isam.Esent.Interop.JET_TABLEID要從中擷取書簽的游標。
書籤 (bookmark)
類型: []包含書簽的緩衝區。
bookmarkSize
類型: System.Int32書簽緩衝區的大小。
actualBookmarkSize
類型: System.Int32傳回書簽的實際大小。