Interface IMongoClient
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
The client interface to MongoDB.
public interface IMongoClient : IDisposable
Inherited Members
Extension Methods
Properties
Gets the cluster.
Gets the settings.
Methods
BulkWrite(IClientSessionHandle, IReadOnlyList, ClientBulkWriteOptions, CancellationToken)
Executes a list of mixed write operations.
BulkWrite(IReadOnlyList, ClientBulkWriteOptions, CancellationToken)
Executes a list of mixed write operations.
BulkWriteAsync(IClientSessionHandle, IReadOnlyList, ClientBulkWriteOptions, CancellationToken)
Executes a list of mixed write operations.
BulkWriteAsync(IReadOnlyList, ClientBulkWriteOptions, CancellationToken)
Executes a list of mixed write operations.
DropDatabase(IClientSessionHandle, string, CancellationToken)
Drops the database with the specified name.
DropDatabase(string, CancellationToken)
Drops the database with the specified name.
DropDatabaseAsync(IClientSessionHandle, string, CancellationToken)
Drops the database with the specified name.
DropDatabaseAsync(string, CancellationToken)
Drops the database with the specified name.
GetDatabase(string, MongoDatabaseSettings)
Gets a database.
ListDatabaseNames(IClientSessionHandle, ListDatabaseNamesOptions, CancellationToken)
Returns the names of the databases on the server.
ListDatabaseNames(IClientSessionHandle, CancellationToken)
Returns the names of the databases on the server.
ListDatabaseNames(ListDatabaseNamesOptions, CancellationToken)
Returns the names of the databases on the server.
ListDatabaseNames(CancellationToken)
Returns the names of the databases on the server.
ListDatabaseNamesAsync(IClientSessionHandle, ListDatabaseNamesOptions, CancellationToken)
Returns the names of the databases on the server.
ListDatabaseNamesAsync(IClientSessionHandle, CancellationToken)
Returns the names of the databases on the server.
ListDatabaseNamesAsync(ListDatabaseNamesOptions, CancellationToken)
Returns the names of the databases on the server.
ListDatabaseNamesAsync(CancellationToken)
Returns the names of the databases on the server.
ListDatabases(IClientSessionHandle, ListDatabasesOptions, CancellationToken)
Lists the databases on the server.
ListDatabases(IClientSessionHandle, CancellationToken)
Lists the databases on the server.
ListDatabases(ListDatabasesOptions, CancellationToken)
Lists the databases on the server.
ListDatabases(CancellationToken)
Lists the databases on the server.
ListDatabasesAsync(IClientSessionHandle, ListDatabasesOptions, CancellationToken)
Lists the databases on the server.
ListDatabasesAsync(IClientSessionHandle, CancellationToken)
Lists the databases on the server.
ListDatabasesAsync(ListDatabasesOptions, CancellationToken)
Lists the databases on the server.
ListDatabasesAsync(CancellationToken)
Lists the databases on the server.
StartSession(ClientSessionOptions, CancellationToken)
Starts a client session.
StartSessionAsync(ClientSessionOptions, CancellationToken)
Starts a client session.
Watches changes on all collections in all databases.
Watches changes on all collections in all databases.
Watches changes on all collections in all databases.
Watch(PipelineDefinition<ChangeStreamDocument, TResult>, ChangeStreamOptions, CancellationToken)
Watches changes on all collections in all databases.
Returns a new IMongoClient instance with a different read concern setting.
WithReadPreference(ReadPreference)
Returns a new IMongoClient instance with a different read preference setting.
WithWriteConcern(WriteConcern)
Returns a new IMongoClient instance with a different write concern setting.