Method First
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
First<TInput, TValue>(ISetWindowFieldsPartition, Func<TInput, TValue>, SetWindowFieldsWindow)
Returns the first value.
public static TValue First<TInput, TValue>(this ISetWindowFieldsPartition<TInput> partition, Func<TInput, TValue> selector, SetWindowFieldsWindow window = null)
Parameters
partition
ISetWindowFieldsPartition
The partition.
selector
Func<TInput, TValue>
The selector that selects a value from the input document.
window
SetWindowFieldsWindow
The window boundaries.
Returns
TValue
The first of the selected values.
Type Parameters
TInput
The type of the input documents in the partition.
TValue
The type of the selected values.