Table of Contents

Method Render

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Render(IBsonSerializer<TSource>, IBsonSerializerRegistry, LinqProvider)

Renders the aggregation expression.

[Obsolete("Use Render(RenderArgs<TSource> args) overload instead.")]
public virtual BsonValue Render(IBsonSerializer<TSource> sourceSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider)

Parameters

sourceSerializer IBsonSerializer<TSource>

The source serializer.

serializerRegistry IBsonSerializerRegistry

The serializer registry.

linqProvider LinqProvider

The LINQ provider.

Returns

BsonValue

The rendered aggregation expression.

Render(RenderArgs<TSource>)

Renders the aggregation expression to a BsonValue.

public abstract BsonValue Render(RenderArgs<TSource> args)

Parameters

args RenderArgs<TSource>

The render arguments.

Returns

BsonValue

A BsonValue.