Constructor MongoCollection
MongoCollection(MongoDatabase, string, MongoCollectionSettings)
Creates a new instance of MongoCollection. Normally you would call one of the indexers or GetCollection methods of MongoDatabase instead.
[Obsolete("Use database.GetCollection() instead.")]
public MongoCollection(MongoDatabase database, string name, MongoCollectionSettings settings)
Parameters
database
MongoDatabaseThe database that contains this collection.
name
stringThe name of the collection.
settings
MongoCollectionSettingsThe settings to use to access this collection.