Method ListDatabases
ListDatabases(CancellationToken)
Lists the databases on the server.
public override sealed IAsyncCursor<BsonDocument> ListDatabases(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationToken The cancellation token.
Returns
- IAsync
Cursor <BsonDocument > A cursor.
ListDatabases(ListDatabasesOptions, CancellationToken)
Lists the databases on the server.
public override sealed IAsyncCursor<BsonDocument> ListDatabases(ListDatabasesOptions options, CancellationToken cancellationToken = default)
Parameters
options
ListDatabases Options The options.
cancellationToken
CancellationToken The cancellation token.
Returns
- IAsync
Cursor <BsonDocument > A cursor.
ListDatabases(IClientSessionHandle, CancellationToken)
Lists the databases on the server.
public override sealed IAsyncCursor<BsonDocument> ListDatabases(IClientSessionHandle session, CancellationToken cancellationToken = default)
Parameters
session
IClientSession Handle The session.
cancellationToken
CancellationToken The cancellation token.
Returns
- IAsync
Cursor <BsonDocument > A cursor.
ListDatabases(IClientSessionHandle, ListDatabasesOptions, CancellationToken)
Lists the databases on the server.
public override sealed IAsyncCursor<BsonDocument> ListDatabases(IClientSessionHandle session, ListDatabasesOptions options, CancellationToken cancellationToken = default)
Parameters
session
IClientSession Handle The session.
options
ListDatabases Options The options.
cancellationToken
CancellationToken The cancellation token.
Returns
- IAsync
Cursor <BsonDocument > A cursor.