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