Table of Contents

Method AllElements

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

AllElements<TSource>(IEnumerable<TSource>)

Represents all elements in an array (corresponds to the server's "$[]" update operator).

public static TSource AllElements<TSource>(this IEnumerable<TSource> source)

Parameters

source IEnumerable<TSource>

A source of values.

Returns

TSource

Only meant to be used in Update specifications.

Type Parameters

TSource

The type of the elements of source.