MongoCursorCreate Method (Type, MongoCollection, IMongoQuery, ReadConcern, ReadPreference, IBsonSerializer) |
Note: This API is now obsolete.
Creates a cursor.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.7.3+Branch.v2.7.x.Sha.2f1f2be13a23b8520cb9c2ee8439c022f9a03efe
Syntax [ObsoleteAttribute("Use a method that returns a cursor instead.")]
public static MongoCursor Create(
Type documentType,
MongoCollection collection,
IMongoQuery query,
ReadConcern readConcern,
ReadPreference readPreference,
IBsonSerializer serializer
)
<ObsoleteAttribute("Use a method that returns a cursor instead.")>
Public Shared Function Create (
documentType As Type,
collection As MongoCollection,
query As IMongoQuery,
readConcern As ReadConcern,
readPreference As ReadPreference,
serializer As IBsonSerializer
) As MongoCursor
[<ObsoleteAttribute("Use a method that returns a cursor instead.")>]
static member Create :
documentType : Type *
collection : MongoCollection *
query : IMongoQuery *
readConcern : ReadConcern *
readPreference : ReadPreference *
serializer : IBsonSerializer -> MongoCursor
Parameters
- documentType
- Type: SystemType
Type of the document. - 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.
Return Value
Type:
MongoCursor
A cursor.
See Also