Api.JetIndexRecordCount method
Counts the number of entries in the current index from the current position forward. The current position is included in the count. The count can be greater than the total number of records in the table if the current index is over a multi-valued column and instances of the column have multiple-values. If the table is empty, then 0 will be returned for the count.
Namespace: Microsoft.Isam.Esent.Interop
Assembly: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
Syntax
'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
)
Parameters
sesid
Type: Microsoft.Isam.Esent.Interop.JET_SESIDThe session to use.
tableid
Type: Microsoft.Isam.Esent.Interop.JET_TABLEIDThe cursor to count the records in.
numRecords
Type: System.Int32Returns the number of records.
maxRecordsToCount
Type: System.Int32The maximum number of records to count. A value of 0 indicates that the count is unlimited.