Table of Contents

Constructor MongoDatabase

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

MongoDatabase(MongoServer, string, MongoDatabaseSettings)

Creates a new instance of MongoDatabase. Normally you would call one of the indexers or GetDatabase methods of MongoServer instead.

[Obsolete("User server.GetDatabase() instead.")]
public MongoDatabase(MongoServer server, string name, MongoDatabaseSettings settings)

Parameters

server MongoServer

The server that contains this database.

name string

The name of the database.

settings MongoDatabaseSettings

The settings to use to access this database.