Click or drag to resize

MongoClient.GetDatabase Method

Gets a database.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.8.0+cc573f3e1f48f39162b4b680e921a623e127e8fa
Syntax
public override sealed IMongoDatabase GetDatabase(
	string name,
	MongoDatabaseSettings settings = null
)

Parameters

name
Type: System.String
The name of the database.
settings (Optional)
Type: MongoDB.Driver.MongoDatabaseSettings
The database settings.

Return Value

Type: IMongoDatabase
An implementation of a database.

Implements

IMongoClient.GetDatabase(String, MongoDatabaseSettings)
See Also