Table of Contents

Method SetWindowFields

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

SetWindowFields<TWindowFields>(AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields>)

Appends a $setWindowFields to the pipeline.

public virtual IAggregateFluent<BsonDocument> SetWindowFields<TWindowFields>(AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields> output)

Parameters

output AggregateExpressionDefinition<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.

public virtual IAggregateFluent<BsonDocument> SetWindowFields<TPartitionBy, TWindowFields>(AggregateExpressionDefinition<TResult, TPartitionBy> partitionBy, AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields> output)

Parameters

partitionBy AggregateExpressionDefinition<TResult, TPartitionBy>

The partitionBy definition.

output AggregateExpressionDefinition<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.

public virtual IAggregateFluent<BsonDocument> SetWindowFields<TPartitionBy, TWindowFields>(AggregateExpressionDefinition<TResult, TPartitionBy> partitionBy, SortDefinition<TResult> sortBy, AggregateExpressionDefinition<ISetWindowFieldsPartition<TResult>, TWindowFields> output)

Parameters

partitionBy AggregateExpressionDefinition<TResult, TPartitionBy>

The partitionBy definition.

sortBy SortDefinition<TResult>

The sortBy definition.

output AggregateExpressionDefinition<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.