IMongoClientListDatabases Method |
Lists the databases on the server.
Namespace: MongoDB.DriverAssembly: MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.2.0
Syntax IAsyncCursor<BsonDocument> ListDatabases(
CancellationToken cancellationToken = null
)
Function ListDatabases (
Optional cancellationToken As CancellationToken = Nothing
) As IAsyncCursor(Of BsonDocument)
abstract ListDatabases :
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken null
*)
-> IAsyncCursor<BsonDocument>
Parameters
- cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
The cancellation token.
Return Value
Type:
IAsyncCursorBsonDocumentA cursor.
See Also