Class MongoClient
Base class for implementors of IMongo
- Inheritance
-
Mongo
Client
- Implements
- Inherited Members
- Extension Methods
Constructors
- Mongo
Client() Initializes a new instance of the MongoClient class.
- Mongo
Client(Mongo Client Settings) Initializes a new instance of the MongoClient class.
- Mongo
Client(Mongo Url) Initializes a new instance of the MongoClient class.
- Mongo
Client(string) Initializes a new instance of the MongoClient class.
Properties
- Cluster
Gets the cluster.
- Settings
Gets the settings.
Methods
- Drop
Database(IClient Session Handle, string, Cancellation Token) Drops the database with the specified name.
- Drop
Database(string, Cancellation Token) Drops the database with the specified name.
- Drop
Database Async(IClient Session Handle, string, Cancellation Token) Drops the database with the specified name.
- Drop
Database Async(string, Cancellation Token) Drops the database with the specified name.
- Get
Database(string, Mongo Database Settings) Gets a database.
- List
Database Names(IClient Session Handle, List Database Names Options, Cancellation Token) Returns the names of the databases on the server.
- List
Database Names(IClient Session Handle, Cancellation Token) Returns the names of the databases on the server.
- List
Database Names(List Database Names Options, Cancellation Token) Returns the names of the databases on the server.
- List
Database Names(Cancellation Token) Returns the names of the databases on the server.
- List
Database Names Async(IClient Session Handle, List Database Names Options, Cancellation Token) Returns the names of the databases on the server.
- List
Database Names Async(IClient Session Handle, Cancellation Token) Returns the names of the databases on the server.
- List
Database Names Async(List Database Names Options, Cancellation Token) Returns the names of the databases on the server.
- List
Database Names Async(Cancellation Token) Returns the names of the databases on the server.
- List
Databases(IClient Session Handle, List Databases Options, Cancellation Token) Lists the databases on the server.
- List
Databases(IClient Session Handle, Cancellation Token) Lists the databases on the server.
- List
Databases(List Databases Options, Cancellation Token) Lists the databases on the server.
- List
Databases(Cancellation Token) Lists the databases on the server.
- List
Databases Async(IClient Session Handle, List Databases Options, Cancellation Token) Lists the databases on the server.
- List
Databases Async(IClient Session Handle, Cancellation Token) Lists the databases on the server.
- List
Databases Async(List Databases Options, Cancellation Token) Lists the databases on the server.
- List
Databases Async(Cancellation Token) Lists the databases on the server.
- Start
Session(Client Session Options, Cancellation Token) Starts a client session.
- Start
Session Async(Client Session Options, Cancellation Token) Starts a client session.
- WatchAsync<TResult>(IClientSessionHandle, PipelineDefinition<ChangeStreamDocument<BsonDocument>, TResult>, ChangeStreamOptions, CancellationToken)
Watches changes on all collections in all databases.
- WatchAsync<TResult>(PipelineDefinition<ChangeStreamDocument<BsonDocument>, TResult>, ChangeStreamOptions, CancellationToken)
Watches changes on all collections in all databases.
- Watch<TResult>(IClientSessionHandle, PipelineDefinition<ChangeStreamDocument<BsonDocument>, TResult>, ChangeStreamOptions, CancellationToken)
Watches changes on all collections in all databases.
- Watch<TResult>(PipelineDefinition<ChangeStreamDocument<BsonDocument>, TResult>, ChangeStreamOptions, CancellationToken)
Watches changes on all collections in all databases.
- With
Read Concern(Read Concern) Returns a new IMongoClient instance with a different read concern setting.
- With
Read Preference(Read Preference) Returns a new IMongoClient instance with a different read preference setting.
- With
Write Concern(Write Concern) Returns a new IMongoClient instance with a different write concern setting.