The MongoClient type exposes the following members.
Methods
| Name | Description |
---|
| DropDatabase(String, CancellationToken) |
Drops the database with the specified name.
(Overrides MongoClientBaseDropDatabase(String, CancellationToken).) |
| DropDatabase(IClientSessionHandle, String, CancellationToken) |
Drops the database with the specified name.
(Overrides MongoClientBaseDropDatabase(IClientSessionHandle, String, CancellationToken).) |
| DropDatabaseAsync(String, CancellationToken) |
Drops the database with the specified name.
(Overrides MongoClientBaseDropDatabaseAsync(String, CancellationToken).) |
| DropDatabaseAsync(IClientSessionHandle, String, CancellationToken) |
Drops the database with the specified name.
(Overrides MongoClientBaseDropDatabaseAsync(IClientSessionHandle, String, CancellationToken).) |
| Equals | (Inherited from Object.) |
| Finalize | (Inherited from Object.) |
| GetDatabase |
Gets a database.
(Overrides MongoClientBaseGetDatabase(String, MongoDatabaseSettings).) |
| GetHashCode | (Inherited from Object.) |
| GetType | (Inherited from Object.) |
| ListDatabases(CancellationToken) |
Lists the databases on the server.
(Overrides MongoClientBaseListDatabases(CancellationToken).) |
| ListDatabases(IClientSessionHandle, CancellationToken) |
Lists the databases on the server.
(Overrides MongoClientBaseListDatabases(IClientSessionHandle, CancellationToken).) |
| ListDatabasesAsync(CancellationToken) |
Lists the databases on the server.
(Overrides MongoClientBaseListDatabasesAsync(CancellationToken).) |
| ListDatabasesAsync(IClientSessionHandle, CancellationToken) |
Lists the databases on the server.
(Overrides MongoClientBaseListDatabasesAsync(IClientSessionHandle, CancellationToken).) |
| MemberwiseClone | (Inherited from Object.) |
| StartSession |
Starts a client sesssion.
(Overrides MongoClientBaseStartSession(ClientSessionOptions, CancellationToken).) |
| StartSessionAsync |
Starts a client sesssion.
(Overrides MongoClientBaseStartSessionAsync(ClientSessionOptions, CancellationToken).) |
| ToString | (Inherited from Object.) |
| WithReadConcern |
Returns a new IMongoClient instance with a different read concern setting.
(Overrides MongoClientBaseWithReadConcern(ReadConcern).) |
| WithReadPreference |
Returns a new IMongoClient instance with a different read preference setting.
(Overrides MongoClientBaseWithReadPreference(ReadPreference).) |
| WithWriteConcern |
Returns a new IMongoClient instance with a different write concern setting.
(Overrides MongoClientBaseWithWriteConcern(WriteConcern).) |
TopExtension Methods See Also