Table of Contents

Constructor StringFieldDefinition

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

StringFieldDefinition(string, IBsonSerializer<TField>)

Initializes a new instance of the StringFieldDefinition<TDocument, TField> class.

public StringFieldDefinition(string fieldName, IBsonSerializer<TField> fieldSerializer = null)

Parameters

fieldName string

Name of the field.

fieldSerializer IBsonSerializer<TField>

The field serializer.