Table of Contents

Method Combine

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Combine(params ProjectionDefinition<TSource>[])

Combines the specified projections.

public ProjectionDefinition<TSource> Combine(params ProjectionDefinition<TSource>[] projections)

Parameters

projections ProjectionDefinition<TSource>[]

The projections.

Returns

ProjectionDefinition<TSource>

A combined projection.

Combine(IEnumerable<ProjectionDefinition<TSource>>)

Combines the specified projections.

public ProjectionDefinition<TSource> Combine(IEnumerable<ProjectionDefinition<TSource>> projections)

Parameters

projections IEnumerable<ProjectionDefinition<TSource>>

The projections.

Returns

ProjectionDefinition<TSource>

A combined projection.