Click or drag to resize

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.15.0+f503bf610759c13f78cff9a3c01e91453185d2ed
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
)

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