Table of Contents

Constructor MongoClient

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

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 MongoClientSettings

The settings.

MongoClient(MongoUrl)

Initializes a new instance of the MongoClient class.

public MongoClient(MongoUrl url)

Parameters

url MongoUrl

The URL.

MongoClient(string)

Initializes a new instance of the MongoClient class.

public MongoClient(string connectionString)

Parameters

connectionString string

The connection string.