Api.JetIndexRecordCount 方法
從目前位置向前計算目前索引中的專案數目。 目前的位置會包含在計數中。 如果目前的索引超過多重值的資料行,且資料行的實例具有多重值,則計數可以大於資料表中的記錄總數。 如果資料表是空的,則會針對計數傳回 0。
Namespace:Microsoft.Isam.Esent.Interop
裝配: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
語法
'Declaration
Public Shared Sub JetIndexRecordCount ( _
sesid As JET_SESID, _
tableid As JET_TABLEID, _
<OutAttribute> ByRef numRecords As Integer, _
maxRecordsToCount As Integer _
)
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim numRecords As Integer
Dim maxRecordsToCount As IntegerApi.JetIndexRecordCount(sesid, _
tableid, numRecords, maxRecordsToCount)
public static void JetIndexRecordCount(
JET_SESID sesid,
JET_TABLEID tableid,
out int numRecords,
int maxRecordsToCount
)
參數
sesid
類型: Microsoft.Isam.Esent.Interop.JET_SESID要使用的會話。
tableid
類型: Microsoft.Isam.Esent.Interop.JET_TABLEID要計算記錄的游標。
numRecords
類型: System.Int32傳回記錄數目。
maxRecordsToCount
類型: System.Int32要計算的記錄數目上限。 值為 0 表示計數無限制。
另請參閱
參考
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應