Table of Contents

Method Render

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Render(IBsonSerializer<TDocument>, IBsonSerializerRegistry, LinqProvider)

Renders the SetFieldDefinition.

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

BsonElement

The rendered SetFieldDefinition.

Render(RenderArgs<TDocument>)

Renders the SetFieldDefinition.

public abstract BsonElement Render(RenderArgs<TDocument> args)

Parameters

args RenderArgs<TDocument>

The render arguments.

Returns

BsonElement

The rendered SetFieldDefinition.