Method ListCollectionNames
ListCollectionNames(ListCollectionNamesOptions, CancellationToken)
Lists the names of all the collections in the database.
IAsyncCursor<string> ListCollectionNames(ListCollectionNamesOptions options = null, CancellationToken cancellationToken = default)
Parameters
options
ListCollection Names Options The options.
cancellationToken
CancellationToken The cancellation token.
Returns
- IAsync
Cursor <string> A cursor.
ListCollectionNames(IClientSessionHandle, ListCollectionNamesOptions, CancellationToken)
Lists the names of all the collections in the database.
IAsyncCursor<string> ListCollectionNames(IClientSessionHandle session, ListCollectionNamesOptions options = null, CancellationToken cancellationToken = default)
Parameters
session
IClientSession Handle The session.
options
ListCollection Names Options The options.
cancellationToken
CancellationToken The cancellation token.
Returns
- IAsync
Cursor <string> A cursor.