Table of Contents

Constructor MongoCursor

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

MongoCursor(MongoCollection, IMongoQuery, ReadPreference, IBsonSerializer)

Creates a new MongoCursor. It is very unlikely that you will call this constructor. Instead, see all the Find methods in MongoCollection.

protected MongoCursor(MongoCollection collection, IMongoQuery query, ReadPreference readPreference, IBsonSerializer serializer)

Parameters

collection MongoCollection

The collection.

query IMongoQuery

The query.

readPreference ReadPreference

The read preference.

serializer IBsonSerializer

The serializer.

MongoCursor(MongoCollection, IMongoQuery, ReadConcern, ReadPreference, IBsonSerializer)

Initializes a new instance of the MongoCursor class.

protected MongoCursor(MongoCollection collection, IMongoQuery query, ReadConcern readConcern, ReadPreference readPreference, IBsonSerializer serializer)

Parameters

collection MongoCollection

The collection.

query IMongoQuery

The query.

readConcern ReadConcern

The read concern.

readPreference ReadPreference

The read preference.

serializer IBsonSerializer

The serializer.