Inheritance Hierarchy
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.5.0+57.Branch.master.Sha.6a4e00a2d91090c65a9b11364b9ebfdb9c7da076
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 MongoClientBase.DropDatabase(String, CancellationToken).) |
 | DropDatabase(IClientSessionHandle, String, CancellationToken) |
Drops the database with the specified name.
(Overrides MongoClientBase.DropDatabase(IClientSessionHandle, String, CancellationToken).) |
 | DropDatabaseAsync(String, CancellationToken) |
Drops the database with the specified name.
(Overrides MongoClientBase.DropDatabaseAsync(String, CancellationToken).) |
 | DropDatabaseAsync(IClientSessionHandle, String, CancellationToken) |
Drops the database with the specified name.
(Overrides MongoClientBase.DropDatabaseAsync(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 MongoClientBase.GetDatabase(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 MongoClientBase.ListDatabases(CancellationToken).) |
 | ListDatabases(IClientSessionHandle, CancellationToken) |
Lists the databases on the server.
(Overrides MongoClientBase.ListDatabases(IClientSessionHandle, CancellationToken).) |
 | ListDatabasesAsync(CancellationToken) |
Lists the databases on the server.
(Overrides MongoClientBase.ListDatabasesAsync(CancellationToken).) |
 | ListDatabasesAsync(IClientSessionHandle, CancellationToken) |
Lists the databases on the server.
(Overrides MongoClientBase.ListDatabasesAsync(IClientSessionHandle, CancellationToken).) |
 | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
 | StartSession |
Starts a client sesssion.
(Overrides MongoClientBase.StartSession(ClientSessionOptions, CancellationToken).) |
 | StartSessionAsync |
Starts a client sesssion.
(Overrides MongoClientBase.StartSessionAsync(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 MongoClientBase.WithReadConcern(ReadConcern).) |
 | WithReadPreference |
Returns a new IMongoClient instance with a different read preference setting.
(Overrides MongoClientBase.WithReadPreference(ReadPreference).) |
 | WithWriteConcern |
Returns a new IMongoClient instance with a different write concern setting.
(Overrides MongoClientBase.WithWriteConcern(WriteConcern).) |
Top
Extension Methods
See Also