Method CreateCommand
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
CreateCommand(ConnectionDescription, ICoreSession)
Creates the command to be explained.
BsonDocument CreateCommand(ConnectionDescription connectionDescription, ICoreSession session)
Parameters
connectionDescription
ConnectionDescriptionThe connection description.
session
ICoreSessionThe session.
Returns
- BsonDocument
The command.