Table of Contents

Class ConstantSetFieldDefinition<TDocument, TField>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

A SetFieldDefinition that uses a field and a a constant to define the field to be set.

public sealed class ConstantSetFieldDefinition<TDocument, TField> : SetFieldDefinition<TDocument>

Type Parameters

TDocument

The type of the document.

TField

The type of the field.

Inheritance
ConstantSetFieldDefinition<TDocument, TField>
Inherited Members

Constructors

ConstantSetFieldDefinition(FieldDefinition<TDocument, TField>, TField)

Initializes an instance of ConstantSetFieldDefinition.

Methods

Render(RenderArgs<TDocument>)

Renders the SetFieldDefinition.