Click or drag to resize

MongoCursor<TDocument> Constructor (MongoCollection, IMongoQuery, ReadConcern, ReadPreference, IBsonSerializer)

Note: This API is now obsolete.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed
Syntax
[ObsoleteAttribute("Use a method that returns a cursor instead.")]
public MongoCursor(
	MongoCollection collection,
	IMongoQuery query,
	ReadConcern readConcern,
	ReadPreference readPreference,
	IBsonSerializer serializer
)

Parameters

collection
Type: MongoDB.Driver.MongoCollection
The collection.
query
Type: MongoDB.Driver.IMongoQuery
The query.
readConcern
Type: MongoDB.Driver.ReadConcern
The read concern.
readPreference
Type: MongoDB.Driver.ReadPreference
The read preference.
serializer
Type: MongoDB.Bson.Serialization.IBsonSerializer
The serializer.
See Also