Method ListDatabaseNamesAsync
ListDatabaseNamesAsync(CancellationToken)
Returns the names of the databases on the server.
public Task<IAsyncCursor<string>> ListDatabaseNamesAsync(CancellationToken cancellationToken = default)Parameters
- cancellationTokenCancellationToken
- The cancellation token. 
Returns
- Task<IAsyncCursor<string>>
- The database names. 
ListDatabaseNamesAsync(ListDatabaseNamesOptions, CancellationToken)
Returns the names of the databases on the server.
public Task<IAsyncCursor<string>> ListDatabaseNamesAsync(ListDatabaseNamesOptions options, CancellationToken cancellationToken = default)Parameters
- optionsListDatabaseNamesOptions
- The options. 
- cancellationTokenCancellationToken
- The cancellation token. 
Returns
- Task<IAsyncCursor<string>>
- The database names. 
ListDatabaseNamesAsync(IClientSessionHandle, CancellationToken)
Returns the names of the databases on the server.
public Task<IAsyncCursor<string>> ListDatabaseNamesAsync(IClientSessionHandle session, CancellationToken cancellationToken = default)Parameters
- sessionIClientSessionHandle
- The session. 
- cancellationTokenCancellationToken
- The cancellation token. 
Returns
- Task<IAsyncCursor<string>>
- The database names. 
ListDatabaseNamesAsync(IClientSessionHandle, ListDatabaseNamesOptions, CancellationToken)
Returns the names of the databases on the server.
public Task<IAsyncCursor<string>> ListDatabaseNamesAsync(IClientSessionHandle session, ListDatabaseNamesOptions options, CancellationToken cancellationToken = default)Parameters
- sessionIClientSessionHandle
- The session. 
- optionsListDatabaseNamesOptions
- The options. 
- cancellationTokenCancellationToken
- The cancellation token. 
Returns
- Task<IAsyncCursor<string>>
- The database names.