Constructor MongoClient
MongoClient()
Initializes a new instance of the MongoClient class.
MongoClient(MongoClientSettings)
Initializes a new instance of the MongoClient class.
Parameters
settings
MongoClient Settings The settings.
MongoClient(MongoUrl)
Initializes a new instance of the MongoClient class.
Parameters
url
MongoUrl The URL.
MongoClient(string)
Initializes a new instance of the MongoClient class.
Parameters
connectionString
stringThe connection string.