Method Create
Create(Type, MongoCollection, IMongoQuery, ReadPreference, IBsonSerializer)
Creates a cursor.
[Obsolete("Use a method that returns a cursor instead.")]
public static MongoCursor Create(Type documentType, MongoCollection collection, IMongoQuery query, ReadPreference readPreference, IBsonSerializer serializer)
Parameters
documentType
TypeThe type of the returned documents.
collection
MongoCollectionThe collection to query.
query
IMongoQueryA query.
readPreference
ReadPreferenceThe read preference.
serializer
IBsonSerializerThe serializer.
Returns
- MongoCursor
A cursor.
Create(Type, MongoCollection, IMongoQuery, ReadConcern, ReadPreference, IBsonSerializer)
Creates a cursor.
[Obsolete("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
TypeType of the document.
collection
MongoCollectionThe collection.
query
IMongoQueryThe query.
readConcern
ReadConcernThe read concern.
readPreference
ReadPreferenceThe read preference.
serializer
IBsonSerializerThe serializer.
Returns
- MongoCursor
A cursor.