Inheritance Hierarchy
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.6.0+Branch.origin/v2.6.x.Sha.593796a7b35dc59243383bcc684de296a5468f2e
Syntaxpublic class MongoClient : MongoClientBase
Public Class MongoClient
Inherits MongoClientBase
type MongoClient =
class
inherit MongoClientBase
end
The MongoClient type exposes the following members.
Constructors
Properties
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).) |
Top
Extension Methods
See Also