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 RenderedProjectionDefinition<TProjection> Render(IBsonSerializer<TSource> sourceSerializer, IBsonSerializerRegistry serializerRegistry)

Parameters

sourceSerializer IBsonSerializer<TSource>

The source serializer.

serializerRegistry IBsonSerializerRegistry

The serializer registry.

Returns

RenderedProjectionDefinition<TProjection>

A RenderedProjectionDefinition<TProjection>.

Render(IBsonSerializer<TSource>, IBsonSerializerRegistry, LinqProvider)

Renders the projection to a RenderedProjectionDefinition<TProjection>.

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

RenderedProjectionDefinition<TProjection>

A RenderedProjectionDefinition<TProjection>.

Render(RenderArgs<TSource>)

Renders the projection to a RenderedProjectionDefinition<TProjection>.

public abstract RenderedProjectionDefinition<TProjection> Render(RenderArgs<TSource> args)

Parameters

args RenderArgs<TSource>

The render arguments.

Returns

RenderedProjectionDefinition<TProjection>

A RenderedProjectionDefinition<TProjection>.