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.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax [ObsoleteAttribute("Use a method that returns a cursor instead.")]
public MongoCursor(
MongoCollection collection,
IMongoQuery query,
ReadConcern readConcern,
ReadPreference readPreference,
IBsonSerializer serializer
)
<ObsoleteAttribute("Use a method that returns a cursor instead.")>
Public Sub New (
collection As MongoCollection,
query As IMongoQuery,
readConcern As ReadConcern,
readPreference As ReadPreference,
serializer As IBsonSerializer
)
[<ObsoleteAttribute("Use a method that returns a cursor instead.")>]
new :
collection : MongoCollection *
query : IMongoQuery *
readConcern : ReadConcern *
readPreference : ReadPreference *
serializer : IBsonSerializer -> MongoCursor
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