Click or drag to resize

IAggregateFluentTResultSetWindowFieldsTPartitionBy, TWindowFields Method (AggregateExpressionDefinitionTResult, TPartitionBy, SortDefinitionTResult, AggregateExpressionDefinitionISetWindowFieldsPartitionTResult, TWindowFields)

Appends a $setWindowFields to the pipeline.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntax
IAggregateFluent<BsonDocument> SetWindowFields<TPartitionBy, TWindowFields>(
	AggregateExpressionDefinition<TResult, TPartitionBy> partitionBy,
	SortDefinition<TResult> sortBy,
	AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields> output
)

Parameters

partitionBy
Type: MongoDB.DriverAggregateExpressionDefinitionTResult, TPartitionBy
The partitionBy definition.
sortBy
Type: MongoDB.DriverSortDefinitionTResult
The sortBy definition.
output
Type: MongoDB.DriverAggregateExpressionDefinitionISetWindowFieldsPartitionTResult, TWindowFields
The window fields definition.

Type Parameters

TPartitionBy
The type of the value to partition by.
TWindowFields
The type of the added window fields.

Return Value

Type: IAggregateFluentBsonDocument
The fluent aggregate interface.
See Also