MongoCursorTDocument Constructor (MongoCollection, IMongoQuery, ReadPreference, IBsonSerializer) | 
 Note: This API is now obsolete.
            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.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntax[ObsoleteAttribute("Use a method that returns a cursor instead.")]
public MongoCursor(
	MongoCollection collection,
	IMongoQuery query,
	ReadPreference readPreference,
	IBsonSerializer serializer
)<ObsoleteAttribute("Use a method that returns a cursor instead.")>
Public Sub New ( 
	collection As MongoCollection,
	query As IMongoQuery,
	readPreference As ReadPreference,
	serializer As IBsonSerializer
)[<ObsoleteAttribute("Use a method that returns a cursor instead.")>]
new : 
        collection : MongoCollection * 
        query : IMongoQuery * 
        readPreference : ReadPreference * 
        serializer : IBsonSerializer -> MongoCursorParameters
- 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