Method ListDatabaseNames
ListDatabaseNames(CancellationToken)
Returns the names of the databases on the server.
IAsyncCursor<string> ListDatabaseNames(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenThe 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
optionsListDatabaseNamesOptionsThe options.
cancellationTokenCancellationTokenThe 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
sessionIClientSessionHandleThe session.
cancellationTokenCancellationTokenThe 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
sessionIClientSessionHandleThe session.
optionsListDatabaseNamesOptionsThe options.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- IAsyncCursor<string>
The database names.