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.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.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