Table of Contents

Method Count

Namespace
MongoDB.Driver.Linq
Assembly
MongoDB.Driver.dll

Count<TInput>(ISetWindowFieldsPartition<TInput>, SetWindowFieldsWindow)

Returns the number of documents in the window.

public static long Count<TInput>(this ISetWindowFieldsPartition<TInput> partition, SetWindowFieldsWindow window = null)

Parameters

partition ISetWindowFieldsPartition<TInput>

The partition.

window SetWindowFieldsWindow

The window boundaries.

Returns

long

The maximum of the selected values.

Type Parameters

TInput

The type of the input documents in the partition.