Table of Contents

Method GetServer

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

GetServer(MongoClient)

Gets a MongoServer object using this client's settings.

[Obsolete("Use the new API instead.")]
public static MongoServer GetServer(this MongoClient client)

Parameters

client MongoClient

The client.

Returns

MongoServer

A MongoServer.