MongoCursorTDocument Constructor |
Creates a new MongoCursor. It is very unlikely that you will call this constructor. Instead, see all the Find methods in MongoCollection.
Namespace: MongoDB.DriverAssembly: MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.1.0
Syntax public MongoCursor(
MongoCollection collection,
IMongoQuery query,
ReadPreference readPreference,
IBsonSerializer serializer
)
Public Sub New (
collection As MongoCollection,
query As IMongoQuery,
readPreference As ReadPreference,
serializer As IBsonSerializer
)
new :
collection : MongoCollection *
query : IMongoQuery *
readPreference : ReadPreference *
serializer : IBsonSerializer -> MongoCursor
Parameters
- 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