Table of Contents

Method AllMatchingElements

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

AllMatchingElements<TSource>(IEnumerable<TSource>, 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<TSource>

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.