Constructor EnumRepresentationConvention
- Namespace
 - MongoDB.Bson.Serialization.Conventions
 
- Assembly
 - MongoDB.Bson.dll
 
EnumRepresentationConvention(BsonType)
Initializes a new instance of the EnumRepresentationConvention class.
public EnumRepresentationConvention(BsonType representation)
Parameters
representationBsonTypeThe serialization representation. 0 is used to detect representation from the enum itself.
EnumRepresentationConvention(BsonType, bool)
Initializes a new instance of the EnumRepresentationConvention class.
public EnumRepresentationConvention(BsonType representation, bool topLevelOnly)