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
databaseMongoDatabaseThe database that contains this collection.
namestringThe name of the collection.
settingsMongoCollectionSettingsThe settings to use to access this collection.