Click or drag to resize
IMongoClient Interface
The client interface to MongoDB.

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.4.1
Syntax
public interface IMongoClient

The IMongoClient type exposes the following members.

Methods
  NameDescription
Public methodDropDatabase
Drops the database with the specified name.
Public methodDropDatabaseAsync
Drops the database with the specified name.
Public methodGetDatabase
Gets a database.
Public methodListDatabases
Lists the databases on the server.
Public methodListDatabasesAsync
Lists the databases on the server.
Public methodWithReadConcern
Returns a new IMongoClient instance with a different read concern setting.
Public methodWithReadPreference
Returns a new IMongoClient instance with a different read preference setting.
Public methodWithWriteConcern
Returns a new IMongoClient instance with a different write concern setting.
Top
Properties
  NameDescription
Public propertyCluster
Gets the cluster.
Public propertySettings
Gets the settings.
Top
Remarks
This interface is not guaranteed to remain stable. Implementors should use MongoClientBase.
See Also