Table of Contents

Method SetWindowFields

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

SetWindowFields<TResult, TWindowFields>(IAggregateFluent<TResult>, Expression<Func<ISetWindowFieldsPartition<TResult>, TWindowFields>>)

Appends a $setWindowFields to the pipeline.

public static IAggregateFluent<BsonDocument> SetWindowFields<TResult, TWindowFields>(this IAggregateFluent<TResult> aggregate, Expression<Func<ISetWindowFieldsPartition<TResult>, TWindowFields>> output)

Parameters

aggregate IAggregateFluent<TResult>

The aggregate.

output Expression<Func<ISetWindowFieldsPartition<TResult>, TWindowFields>>

The window fields expression.

Returns

IAggregateFluent<BsonDocument>

The fluent aggregate interface.

Type Parameters

TResult

The type of the result.

TWindowFields

The type of the added window fields.

SetWindowFields<TResult, TPartitionBy, TWindowFields>(IAggregateFluent<TResult>, Expression<Func<TResult, TPartitionBy>>, Expression<Func<ISetWindowFieldsPartition<TResult>, TWindowFields>>)

Appends a $setWindowFields to the pipeline.

public static IAggregateFluent<BsonDocument> SetWindowFields<TResult, TPartitionBy, TWindowFields>(this IAggregateFluent<TResult> aggregate, Expression<Func<TResult, TPartitionBy>> partitionBy, Expression<Func<ISetWindowFieldsPartition<TResult>, TWindowFields>> output)

Parameters

aggregate IAggregateFluent<TResult>

The aggregate.

partitionBy Expression<Func<TResult, TPartitionBy>>

The partitionBy expression.

output Expression<Func<ISetWindowFieldsPartition<TResult>, TWindowFields>>

The window fields expression.

Returns

IAggregateFluent<BsonDocument>

The fluent aggregate interface.

Type Parameters

TResult

The type of the result.

TPartitionBy

The type of the value to partition by.

TWindowFields

The type of the added window fields.

SetWindowFields<TResult, TPartitionBy, TWindowFields>(IAggregateFluent<TResult>, Expression<Func<TResult, TPartitionBy>>, SortDefinition<TResult>, Expression<Func<ISetWindowFieldsPartition<TResult>, TWindowFields>>)

Appends a $setWindowFields to the pipeline.

public static IAggregateFluent<BsonDocument> SetWindowFields<TResult, TPartitionBy, TWindowFields>(this IAggregateFluent<TResult> aggregate, Expression<Func<TResult, TPartitionBy>> partitionBy, SortDefinition<TResult> sortBy, Expression<Func<ISetWindowFieldsPartition<TResult>, TWindowFields>> output)

Parameters

aggregate IAggregateFluent<TResult>

The aggregate.

partitionBy Expression<Func<TResult, TPartitionBy>>

The partitionBy expression.

sortBy SortDefinition<TResult>

The sortBy expression.

output Expression<Func<ISetWindowFieldsPartition<TResult>, TWindowFields>>

The window fields expression.

Returns

IAggregateFluent<BsonDocument>

The fluent aggregate interface.

Type Parameters

TResult

The type of the result.

TPartitionBy

The type of the value to partition by.

TWindowFields

The type of the added window fields.