IMongoClient Methods |
The IMongoClient type exposes the following members.
Name | Description | |
---|---|---|
![]() | DropDatabase(String, CancellationToken) |
Drops the database with the specified name.
|
![]() | DropDatabase(IClientSessionHandle, String, CancellationToken) |
Drops the database with the specified name.
|
![]() | DropDatabaseAsync(String, CancellationToken) |
Drops the database with the specified name.
|
![]() | DropDatabaseAsync(IClientSessionHandle, String, CancellationToken) |
Drops the database with the specified name.
|
![]() | GetDatabase |
Gets a database.
|
![]() | ListDatabases(CancellationToken) |
Lists the databases on the server.
|
![]() | ListDatabases(IClientSessionHandle, CancellationToken) |
Lists the databases on the server.
|
![]() | ListDatabasesAsync(CancellationToken) |
Lists the databases on the server.
|
![]() | ListDatabasesAsync(IClientSessionHandle, CancellationToken) |
Lists the databases on the server.
|
![]() | StartSession |
Starts a client sesssion.
|
![]() | StartSessionAsync |
Starts a client sesssion.
|
![]() | WithReadConcern |
Returns a new IMongoClient instance with a different read concern setting.
|
![]() | WithReadPreference |
Returns a new IMongoClient instance with a different read preference setting.
|
![]() | WithWriteConcern |
Returns a new IMongoClient instance with a different write concern setting.
|