Constructor MongoCursor
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.
[Obsolete("Use a method that returns a cursor instead.")]
public MongoCursor(MongoCollection collection, IMongoQuery query, ReadPreference readPreference, IBsonSerializer serializer)
Parameters
collection
MongoCollectionThe collection.
query
IMongoQueryThe query.
readPreference
ReadPreferenceThe read preference.
serializer
IBsonSerializerThe serializer.
MongoCursor(MongoCollection, IMongoQuery, ReadConcern, ReadPreference, IBsonSerializer)
Initializes a new instance of the MongoCursor<TDocument> class.
[Obsolete("Use a method that returns a cursor instead.")]
public MongoCursor(MongoCollection collection, IMongoQuery query, ReadConcern readConcern, ReadPreference readPreference, IBsonSerializer serializer)
Parameters
collection
MongoCollectionThe collection.
query
IMongoQueryThe query.
readConcern
ReadConcernThe read concern.
readPreference
ReadPreferenceThe read preference.
serializer
IBsonSerializerThe serializer.