Class ExplainOperation
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
Represents an explain operation.
- Inheritance
-
Explain
Operation
- Implements
- Inherited Members
- Extension Methods
Constructors
ExplainOperation(DatabaseNamespace, IExplainableOperation, MessageEncoderSettings)
Initializes a new instance of the Explain
public ExplainOperation(DatabaseNamespace databaseNamespace, IExplainableOperation explainableOperation, MessageEncoderSettings messageEncoderSettings)
Parameters
databaseNamespace
DatabaseNamespace The database namespace.
explainableOperation
IExplainableOperation The explainable operation.
messageEncoderSettings
MessageEncoder Settings The message encoder settings.
Properties
DatabaseNamespace
Gets the database namespace.
Property Value
- Database
Namespace The database namespace.
ExplainableOperation
Gets the operation to be explained.
Property Value
- IExplainable
Operation The operation to be explained.
MessageEncoderSettings
Gets the message encoder settings.
Property Value
- Message
Encoder Settings The message encoder settings.
Verbosity
Gets or sets the verbosity.
Property Value
- Explain
Verbosity The verbosity.
Methods
Execute(IReadBinding, CancellationToken)
Executes the operation.
Parameters
binding
IReadBinding The binding.
cancellationToken
CancellationToken The cancellation token.
Returns
- Bson
Document The result of the operation.
Execute(IWriteBinding, CancellationToken)
Executes the operation.
Parameters
binding
IWriteBinding The binding.
cancellationToken
CancellationToken The cancellation token.
Returns
- Bson
Document The result of the operation.
ExecuteAsync(IReadBinding, CancellationToken)
Executes the operation.
Parameters
binding
IReadBinding The binding.
cancellationToken
CancellationToken The cancellation token.
Returns
- Task<Bson
Document > A Task whose result is the result of the operation.
ExecuteAsync(IWriteBinding, CancellationToken)
Executes the operation.
Parameters
binding
IWriteBinding The binding.
cancellationToken
CancellationToken The cancellation token.
Returns
- Task<Bson
Document > A Task whose result is the result of the operation.