Table of Contents

Constructor RenderedFieldDefinition

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

RenderedFieldDefinition(string, IBsonSerializer<TField>)

Initializes a new instance of the RenderedFieldDefinition<TField> class.

[Obsolete("Use the constructor that takes 4 arguments instead.")]
public RenderedFieldDefinition(string fieldName, IBsonSerializer<TField> fieldSerializer)

Parameters

fieldName string

The field name.

fieldSerializer IBsonSerializer<TField>

The field serializer.

RenderedFieldDefinition(string, IBsonSerializer<TField>, IBsonSerializer<TField>, IBsonSerializer)

Initializes a new instance of the RenderedFieldDefinition<TField> class.

public RenderedFieldDefinition(string fieldName, IBsonSerializer<TField> fieldSerializer, IBsonSerializer<TField> valueSerializer, IBsonSerializer underlyingSerializer)

Parameters

fieldName string

The field name.

fieldSerializer IBsonSerializer<TField>

The field serializer.

valueSerializer IBsonSerializer<TField>

The value serializer.

underlyingSerializer IBsonSerializer

The underlying serializer.