Share via


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
)

參數

  • maxRecordsToCount
    類型: System.Int32

    要計算的記錄數目上限。 值為 0 表示計數無限制。

另請參閱

參考

Api 類別

Api 成員

Microsoft.Isam.Esent.Interop 命名空間