Table of Contents

Class RenderedFieldDefinition<TField>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

A rendered field.

public sealed class RenderedFieldDefinition<TField>

Type Parameters

TField

The type of the field.

Inheritance
RenderedFieldDefinition<TField>
Inherited Members

Constructors

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.

Properties

FieldName

Gets the field name.

public string FieldName { get; }

Property Value

string

FieldSerializer

Gets the field serializer.

public IBsonSerializer<TField> FieldSerializer { get; }

Property Value

IBsonSerializer<TField>

UnderlyingSerializer

Gets the underlying serializer.

public IBsonSerializer UnderlyingSerializer { get; }

Property Value

IBsonSerializer

ValueSerializer

Gets the value serializer.

public IBsonSerializer<TField> ValueSerializer { get; }

Property Value

IBsonSerializer<TField>