Table of Contents

Class EvalOperation

Namespace
MongoDB.Driver.Core.Operations
Assembly
MongoDB.Driver.Core.dll

Represents an eval operation.

public class EvalOperation : IWriteOperation<BsonValue>
Inheritance
EvalOperation
Implements
Inherited Members
Extension Methods

Constructors

EvalOperation(DatabaseNamespace, BsonJavaScript, MessageEncoderSettings)

Initializes a new instance of the EvalOperation class.

Properties

Args

Gets or sets the arguments to the JavaScript function.

DatabaseNamespace

Gets the database namespace.

Function

Gets the JavaScript function.

MaxTime

Gets or sets the maximum time the server should spend on this operation.

MessageEncoderSettings

Gets the message encoder settings.

NoLock

Gets or sets a value indicating whether the server should not take a global write lock before evaluating the JavaScript function.

Methods

Execute(IWriteBinding, CancellationToken)

Executes the operation.

ExecuteAsync(IWriteBinding, CancellationToken)

Executes the operation.