Click or drag to resize
AggregateFluentBaseTResult Class
Inheritance Hierarchy
SystemObject
  MongoDB.DriverAggregateFluentBaseTResult

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.0.1
Syntax
public abstract class AggregateFluentBase<TResult> : IOrderedAggregateFluent<TResult>, 
	IAggregateFluent<TResult>, IAsyncCursorSource<TResult>

Type Parameters

TResult
The type of the document.

The AggregateFluentBaseTResult type exposes the following members.

Constructors
  NameDescription
Protected methodAggregateFluentBaseTResult
Initializes a new instance of the AggregateFluentBaseTResult class
Top
Methods
  NameDescription
Public methodAppendStageTNewResult
Appends the stage to the pipeline.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGroupTNewResult
Appends a group stage to the stages.
Public methodLimit
Appends a limit stage to the pipeline.
Public methodMatch
Appends a match stage to the pipeline.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOutAsync
Appends an out stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection.
Public methodProjectTNewResult
Appends a project stage to the pipeline.
Public methodSkip
Appends a skip stage to the pipeline.
Public methodSort
Appends a sort stage to the pipeline.
Public methodToCursorAsync
Executes the operation and returns a cursor to the results.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUnwindTNewResult
Appends an unwind stage to the pipeline.
Top
Extension Methods
  NameDescription
Public Extension MethodFirstAsyncTResult
Returns the first document of the aggregate result.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodFirstOrDefaultAsyncTResult
Returns the first document of the aggregate result, or the default value if the result set is empty.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodForEachAsyncTResult(FuncTResult, Task, CancellationToken)Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorSourceExtensions.)
Public Extension MethodForEachAsyncTResult(FuncTResult, Int32, Task, CancellationToken)Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorSourceExtensions.)
Public Extension MethodForEachAsyncTResult(ActionTResult, CancellationToken)Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorSourceExtensions.)
Public Extension MethodForEachAsyncTResult(ActionTResult, Int32, CancellationToken)Overloaded.
Calls a delegate for each document returned by the cursor.
(Defined by IAsyncCursorSourceExtensions.)
Public Extension MethodGroupTResult(ProjectionDefinitionTResult, BsonDocument)Overloaded.
Appends a group stage to the pipeline.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodGroupTResult, TKey, TNewResult(ExpressionFuncTResult, TKey, ExpressionFuncIGroupingTKey, TResult, TNewResult)Overloaded.
Appends a group stage to the pipeline.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodMatchTResult
Appends a match stage to the pipeline.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodProjectTResult(ProjectionDefinitionTResult, BsonDocument)Overloaded.
Appends a project stage to the pipeline.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodProjectTResult, TNewResult(ExpressionFuncTResult, TNewResult)Overloaded.
Appends a project stage to the pipeline.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodSingleAsyncTResult
Returns the only document of the aggregate result. Throws an exception if the result set does not contain exactly one document.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodSingleOrDefaultAsyncTResult
Returns the only document of the aggregate result, or the default value if the result set is empty. Throws an exception if the result set contains more than one document.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodSortByTResult
Appends an ascending sort stage to the pipeline.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodSortByDescendingTResult
Appends a descending sort stage to the pipeline.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodThenByTResult
Modifies the current sort stage by appending an ascending field specification to it.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodThenByDescendingTResult
Modifies the current sort stage by appending a descending field specification to it.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Public Extension MethodToListAsyncTResult
Returns a list containing all the documents returned by the cursor returned by a cursor source.
(Defined by IAsyncCursorSourceExtensions.)
Public Extension MethodUnwindTResult(ExpressionFuncTResult, Object)Overloaded.
Appends an unwind stage to the pipeline.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodUnwindTResult(FieldDefinitionTResult)Overloaded.
Appends an unwind stage to the pipeline.
(Defined by IAggregateFluentExtensions.)
Public Extension MethodUnwindTResult, TNewResult(ExpressionFuncTResult, Object, IBsonSerializerTNewResult)Overloaded.
Appends an unwind stage to the pipeline.
(Defined by IAggregateFluentExtensions.)
Top
Properties
  NameDescription
Public propertyOptions
Gets the options.
Public propertyStages
Gets the stages.
Top
See Also