Table of Contents

Constructor MongoServer

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

MongoServer(MongoServerSettings)

Creates a new instance of MongoServer. Normally you will use one of the Create methods instead of the constructor to create instances of this class.

[Obsolete("Use client.GetServer instead.")]
public MongoServer(MongoServerSettings settings)

Parameters

settings MongoServerSettings

The settings for this instance of MongoServer.