dotConnect for MongoDB Documentation
Devart.Data.MongoDB Namespace / MongoDBCommand Class / ExecutePageReader Method

On this page
    ExecutePageReader Method (MongoDBCommand)
    On this page
    Executes the command and returns a MongoDBDataReader that reads only the specified range of records. In the native mode the range is passed as the skip and limit fields of the command.
    Returns a specific subset of rows when paging through the results of a query.
    Syntax
    'Declaration
     
    Public Shadows Function ExecutePageReader( _
       ByVal behavior As CommandBehavior, _
       ByVal startRecord As Integer, _
       ByVal maxRecords As Integer _
    ) As MongoDBDataReader
    public new MongoDBDataReader ExecutePageReader( 
       CommandBehavior behavior,
       int startRecord,
       int maxRecords
    )

    Parameters

    behavior
    startRecord
    maxRecords
    See Also