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
)
參數
sesid
類型: Microsoft.Isam.Esent.Interop.JET_SESID要使用的會話。
tableid
類型: Microsoft.Isam.Esent.Interop.JET_TABLEID要從中擷取書簽的資料指標。
secondaryKey
類型: []次要金鑰的輸出緩衝區。
secondaryKeySize
類型: System.Int32次要金鑰緩衝區的大小。
actualSecondaryKeySize
類型: System.Int32傳回次要金鑰的大小。
primaryKey
類型: []主鍵的輸出緩衝區。
primaryKeySize
類型: System.Int32主鍵緩衝區的大小。
actualPrimaryKeySize
類型: System.Int32傳回主鍵的大小。
grbit
類型: Microsoft.Isam.Esent.Interop.GetSecondaryIndexBookmarkGrbit呼叫的選項。
另請參閱
參考
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應