Method ListDatabaseNamesAsync
ListDatabaseNamesAsync(CancellationToken)
Returns the names of the databases on the server.
public virtual Task<IAsyncCursor<string>> ListDatabaseNamesAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationToken The cancellation token.
Returns
- Task<IAsync
Cursor <string>> The database names.
ListDatabaseNamesAsync(ListDatabaseNamesOptions, CancellationToken)
Returns the names of the databases on the server.
public virtual Task<IAsyncCursor<string>> ListDatabaseNamesAsync(ListDatabaseNamesOptions options, CancellationToken cancellationToken = default)
Parameters
options
ListDatabase Names Options The options.
cancellationToken
CancellationToken The cancellation token.
Returns
- Task<IAsync
Cursor <string>> The database names.
ListDatabaseNamesAsync(IClientSessionHandle, CancellationToken)
Returns the names of the databases on the server.
public virtual Task<IAsyncCursor<string>> ListDatabaseNamesAsync(IClientSessionHandle session, CancellationToken cancellationToken = default)
Parameters
session
IClientSession Handle The session.
cancellationToken
CancellationToken The cancellation token.
Returns
- Task<IAsync
Cursor <string>> The database names.
ListDatabaseNamesAsync(IClientSessionHandle, ListDatabaseNamesOptions, CancellationToken)
Returns the names of the databases on the server.
public virtual Task<IAsyncCursor<string>> ListDatabaseNamesAsync(IClientSessionHandle session, ListDatabaseNamesOptions options, CancellationToken cancellationToken = default)
Parameters
session
IClientSession Handle The session.
options
ListDatabase Names Options The options.
cancellationToken
CancellationToken The cancellation token.
Returns
- Task<IAsync
Cursor <string>> The database names.