Click or drag to resize

MongoCursor Constructor (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.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.11.0+cb27a82ea70620ad1acad8058809be8302ae4f2a
Syntax
protected MongoCursor(
	MongoCollection collection,
	IMongoQuery query,
	ReadPreference readPreference,
	IBsonSerializer serializer
)

Parameters

collection
Type: MongoDB.DriverMongoCollection
The collection.
query
Type: MongoDB.DriverIMongoQuery
The query.
readPreference
Type: MongoDB.DriverReadPreference
The read preference.
serializer
Type: MongoDB.Bson.SerializationIBsonSerializer
The serializer.
See Also