Table of Contents

Method Render

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Render(IBsonSerializer<TDocument>, IBsonSerializerRegistry)

Renders the field to a RenderedFieldDefinition<TField>.

[Obsolete("Use Render(RenderArgs<TDocument> args) overload instead.")]
public virtual RenderedFieldDefinition<TField> Render(IBsonSerializer<TDocument> documentSerializer, IBsonSerializerRegistry serializerRegistry)

Parameters

documentSerializer IBsonSerializer<TDocument>

The document serializer.

serializerRegistry IBsonSerializerRegistry

The serializer registry.

Returns

RenderedFieldDefinition<TField>

A RenderedFieldDefinition<TField>.

Render(IBsonSerializer<TDocument>, IBsonSerializerRegistry, bool)

Renders the field to a RenderedFieldDefinition<TField>.

[Obsolete("Use Render(RenderArgs<TDocument> args) overload instead.")]
public virtual RenderedFieldDefinition<TField> Render(IBsonSerializer<TDocument> documentSerializer, IBsonSerializerRegistry serializerRegistry, bool allowScalarValueForArrayField)

Parameters

documentSerializer IBsonSerializer<TDocument>

The document serializer.

serializerRegistry IBsonSerializerRegistry

The serializer registry.

allowScalarValueForArrayField bool

Whether a scalar value is allowed for an array field.

Returns

RenderedFieldDefinition<TField>

A RenderedFieldDefinition<TField>.

Render(IBsonSerializer<TDocument>, IBsonSerializerRegistry, LinqProvider, bool)

Renders the field to a RenderedFieldDefinition<TField>.

[Obsolete("Use Render(RenderArgs<TDocument> args) overload instead.")]
public virtual RenderedFieldDefinition<TField> Render(IBsonSerializer<TDocument> documentSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider, bool allowScalarValueForArrayField)

Parameters

documentSerializer IBsonSerializer<TDocument>

The document serializer.

serializerRegistry IBsonSerializerRegistry

The serializer registry.

linqProvider LinqProvider

The LINQ provider.

allowScalarValueForArrayField bool

Whether a scalar value is allowed for an array field.

Returns

RenderedFieldDefinition<TField>

A RenderedFieldDefinition<TField>.

Render(IBsonSerializer<TDocument>, IBsonSerializerRegistry, LinqProvider)

Renders the field to a RenderedFieldDefinition<TField>.

[Obsolete("Use Render(RenderArgs<TDocument> args) overload instead.")]
public virtual RenderedFieldDefinition<TField> Render(IBsonSerializer<TDocument> documentSerializer, IBsonSerializerRegistry serializerRegistry, LinqProvider linqProvider)

Parameters

documentSerializer IBsonSerializer<TDocument>

The document serializer.

serializerRegistry IBsonSerializerRegistry

The serializer registry.

linqProvider LinqProvider

The LINQ provider.

Returns

RenderedFieldDefinition<TField>

A RenderedFieldDefinition<TField>.

Render(RenderArgs<TDocument>)

Renders the field to a RenderedFieldDefinition<TField>.

public abstract RenderedFieldDefinition<TField> Render(RenderArgs<TDocument> args)

Parameters

args RenderArgs<TDocument>

The render arguments.

Returns

RenderedFieldDefinition<TField>

A RenderedFieldDefinition<TField>.