Table of Contents

Method Render

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Render(IBsonSerializer<TSource>, IBsonSerializerRegistry)

Renders the projection to a RenderedProjectionDefinition<TProjection>.

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

Parameters

sourceSerializer IBsonSerializer<TSource>

The source serializer.

serializerRegistry IBsonSerializerRegistry

The serializer registry.

Returns

BsonDocument

A BsonDocument.

Render(IBsonSerializer<TSource>, IBsonSerializerRegistry, LinqProvider)

Renders the projection to a RenderedProjectionDefinition<TProjection>.

[Obsolete("Use Render(RenderArgs<TSource> args) overload instead.")]
public virtual BsonDocument 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

BsonDocument

A BsonDocument.

Render(RenderArgs<TSource>)

Renders the projection to a RenderedProjectionDefinition<TProjection>.

public abstract BsonDocument Render(RenderArgs<TSource> args)

Parameters

args RenderArgs<TSource>

The render arguments.

Returns

BsonDocument

A BsonDocument.