Click or drag to resize
MongoCursor.Create Method (Type, MongoCollection, IMongoQuery, ReadConcern, ReadPreference, IBsonSerializer)
Creates a cursor.

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.2.0
Syntax
public static MongoCursor Create(
	Type documentType,
	MongoCollection collection,
	IMongoQuery query,
	ReadConcern readConcern,
	ReadPreference readPreference,
	IBsonSerializer serializer
)

Parameters

documentType
Type: System.Type
Type of the document.
collection
Type: MongoDB.Driver.MongoCollection
The collection.
query
Type: MongoDB.Driver.IMongoQuery
The query.
readConcern
Type: MongoDB.Driver.ReadConcern
The read concern.
readPreference
Type: MongoDB.Driver.ReadPreference
The read preference.
serializer
Type: MongoDB.Bson.Serialization.IBsonSerializer
The serializer.

Return Value

Type: MongoCursor
A cursor.
See Also