Inheritance Hierarchy
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.5.0+57.Branch.master.Sha.6a4e00a2d91090c65a9b11364b9ebfdb9c7da076
Syntax public 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 | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
| GetDatabase |
Gets a database.
(Overrides MongoClientBaseGetDatabase(String, MongoDatabaseSettings).) |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) |
| GetType | Gets the Type of the current instance. (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 | Creates a shallow copy of the current Object. (Inherited from Object.) |
| StartSession |
Starts a client sesssion.
(Overrides MongoClientBaseStartSession(ClientSessionOptions, CancellationToken).) |
| StartSessionAsync |
Starts a client sesssion.
(Overrides MongoClientBaseStartSessionAsync(ClientSessionOptions, CancellationToken).) |
| ToString | Returns a string that represents the current object. (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