Constructor StringFieldDefinition
StringFieldDefinition(string, IBsonSerializer<TField>)
Initializes a new instance of the StringFieldDefinition<TDocument, TField> class.
public StringFieldDefinition(string fieldName, IBsonSerializer<TField> fieldSerializer = null)
Parameters
fieldName
stringName of the field.
fieldSerializer
IBsonSerializer<TField>The field serializer.