Method ListDatabaseNames
ListDatabaseNames(CancellationToken)
Returns the names of the databases on the server.
IAsyncCursor<string> ListDatabaseNames(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenThe cancellation token.
Returns
- IAsyncCursor<string>
The database names.
ListDatabaseNames(ListDatabaseNamesOptions, CancellationToken)
Returns the names of the databases on the server.
IAsyncCursor<string> ListDatabaseNames(ListDatabaseNamesOptions options, CancellationToken cancellationToken = default)
Parameters
options
ListDatabaseNamesOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- IAsyncCursor<string>
The database names.
ListDatabaseNames(IClientSessionHandle, CancellationToken)
Returns the names of the databases on the server.
IAsyncCursor<string> ListDatabaseNames(IClientSessionHandle session, CancellationToken cancellationToken = default)
Parameters
session
IClientSessionHandleThe session.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- IAsyncCursor<string>
The database names.
ListDatabaseNames(IClientSessionHandle, ListDatabaseNamesOptions, CancellationToken)
Returns the names of the databases on the server.
IAsyncCursor<string> ListDatabaseNames(IClientSessionHandle session, ListDatabaseNamesOptions options, CancellationToken cancellationToken = default)
Parameters
session
IClientSessionHandleThe session.
options
ListDatabaseNamesOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- IAsyncCursor<string>
The database names.