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
ListCollectionNamesOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- IAsyncCursor<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
IClientSessionHandleThe session.
options
ListCollectionNamesOptionsThe options.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- IAsyncCursor<string>
A cursor.