Table of Contents

Method DocumentNumber

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

DocumentNumber<TInput>(ISetWindowFieldsPartition<TInput>)

Returns the position of a document (known as the document number) in the $setWindowFields stage partition.

public static decimal DocumentNumber<TInput>(this ISetWindowFieldsPartition<TInput> partition)

Parameters

partition ISetWindowFieldsPartition<TInput>

The partition.

Returns

decimal

The document position.

Type Parameters

TInput

The type of the input documents in the partition.