Method AllMatchingElements

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver.Linq

Assembly

MongoDB.Driver.dll

AllMatchingElements(IEnumerable, string)

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

public static TSource AllMatchingElements<TSource>(this IEnumerable<TSource> source, string identifier)

Parameters

source IEnumerable

A source of values.

identifier string

The name of the identifier in the corresponding array filter.

Returns

TSource

Only meant to be used in Update specifications.

Type Parameters

TSource

The type of the elements of source.