Method SetWindowFields
SetWindowFields<TWindowFields>(AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields>)
Appends a $setWindowFields to the pipeline.
IAggregateFluent<BsonDocument> SetWindowFields<TWindowFields>(AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields> output)Parameters
- outputAggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields>
- The window fields definition. 
Returns
- IAggregateFluent<BsonDocument>
- The fluent aggregate interface. 
Type Parameters
- TWindowFields
- The type of the added window fields. 
SetWindowFields<TPartitionBy, TWindowFields>(AggregateExpressionDefinition<TResult, TPartitionBy>, AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields>)
Appends a $setWindowFields to the pipeline.
IAggregateFluent<BsonDocument> SetWindowFields<TPartitionBy, TWindowFields>(AggregateExpressionDefinition<TResult, TPartitionBy> partitionBy, AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields> output)Parameters
- partitionByAggregateExpressionDefinition<TResult, TPartitionBy>
- The partitionBy definition. 
- outputAggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields>
- The window fields definition. 
Returns
- IAggregateFluent<BsonDocument>
- The fluent aggregate interface. 
Type Parameters
- TPartitionBy
- The type of the value to partition by. 
- TWindowFields
- The type of the added window fields. 
SetWindowFields<TPartitionBy, TWindowFields>(AggregateExpressionDefinition<TResult, TPartitionBy>, SortDefinition<TResult>, AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields>)
Appends a $setWindowFields to the pipeline.
IAggregateFluent<BsonDocument> SetWindowFields<TPartitionBy, TWindowFields>(AggregateExpressionDefinition<TResult, TPartitionBy> partitionBy, SortDefinition<TResult> sortBy, AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields> output)Parameters
- partitionByAggregateExpressionDefinition<TResult, TPartitionBy>
- The partitionBy definition. 
- sortBySortDefinition<TResult>
- The sortBy definition. 
- outputAggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields>
- The window fields definition. 
Returns
- IAggregateFluent<BsonDocument>
- The fluent aggregate interface. 
Type Parameters
- TPartitionBy
- The type of the value to partition by. 
- TWindowFields
- The type of the added window fields.