MongoCursorCreate Method (Type, MongoCollection, IMongoQuery, 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.6.0+Branch.origin/v2.6.x.Sha.593796a7b35dc59243383bcc684de296a5468f2e
Syntax [ObsoleteAttribute("Use a method that returns a cursor instead.")]
public static MongoCursor Create(
Type documentType,
MongoCollection collection,
IMongoQuery query,
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,
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 *
readPreference : ReadPreference *
serializer : IBsonSerializer -> MongoCursor
Parameters
- documentType
- Type: SystemType
The type of the returned documents. - collection
- Type: MongoDB.DriverMongoCollection
The collection to query. - query
- Type: MongoDB.DriverIMongoQuery
A query. - readPreference
- Type: MongoDB.DriverReadPreference
The read preference. - serializer
- Type: MongoDB.Bson.SerializationIBsonSerializer
The serializer.
Return Value
Type:
MongoCursor
A cursor.
See Also