Class AggregateToCollectionOperation
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
Represents an aggregate operation that writes the results to an output collection.
public class AggregateToCollectionOperation : IWriteOperation<BsonDocument>
- Inheritance
-
AggregateToCollectionOperation
- Implements
- Inherited Members
- Extension Methods
Constructors
- AggregateToCollectionOperation(CollectionNamespace, IEnumerable<BsonDocument>, MessageEncoderSettings)
Initializes a new instance of the AggregateToCollectionOperation class.
- AggregateToCollectionOperation(DatabaseNamespace, IEnumerable<BsonDocument>, MessageEncoderSettings)
Initializes a new instance of the AggregateToCollectionOperation class.
Properties
- AllowDiskUse
Gets or sets a value indicating whether the server is allowed to use the disk.
- BypassDocumentValidation
Gets or sets a value indicating whether to bypass document validation.
- Collation
Gets or sets the collation.
- CollectionNamespace
Gets the collection namespace.
- Comment
Gets or sets the comment.
- DatabaseNamespace
Gets the database namespace.
- Hint
Gets or sets the hint. This must either be a BsonString representing the index name or a BsonDocument representing the key pattern of the index.
- Let
Gets or sets the "let" definition.
- MaxTime
Gets or sets the maximum time the server should spend on this operation.
- MessageEncoderSettings
Gets the message encoder settings.
- Pipeline
Gets the pipeline.
- ReadConcern
Gets or sets the read concern.
- ReadPreference
Gets or sets the read preference.
- WriteConcern
Gets or sets the write concern.
Methods
- Execute(IWriteBinding, CancellationToken)
Executes the operation.
- ExecuteAsync(IWriteBinding, CancellationToken)
Executes the operation.