Table of Contents

Method Create

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

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 Type

The type of the returned documents.

collection MongoCollection

The collection to query.

query IMongoQuery

A query.

readPreference ReadPreference

The read preference.

serializer IBsonSerializer

The 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 Type

Type of the document.

collection MongoCollection

The collection.

query IMongoQuery

The query.

readConcern ReadConcern

The read concern.

readPreference ReadPreference

The read preference.

serializer IBsonSerializer

The serializer.

Returns

MongoCursor

A cursor.