Click or drag to resize

MongoClient.GetDatabase Method

Gets a database.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
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