Click or drag to resize

IExplainableOperationCreateCommand Method

Creates the command to be explained.

Namespace:  MongoDB.Driver.Core.Operations
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.16.0+eeafbea0921243a5868b81984e1083a07c1f75bc
Syntax
BsonDocument CreateCommand(
	ConnectionDescription connectionDescription,
	ICoreSession session
)

Parameters

connectionDescription
Type: MongoDB.Driver.Core.ConnectionsConnectionDescription
The connection description.
session
Type: MongoDB.Driver.Core.BindingsICoreSession
The session.

Return Value

Type: BsonDocument
The command.
See Also