Click or drag to resize

MongoCursorTDocument 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.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
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.DriverMongoCollection
The collection.
query
Type: MongoDB.DriverIMongoQuery
The query.
readConcern
Type: MongoDB.DriverReadConcern
The read concern.
readPreference
Type: MongoDB.DriverReadPreference
The read preference.
serializer
Type: MongoDB.Bson.SerializationIBsonSerializer
The serializer.
See Also