Class IgnoreExtraElementsConvention
- Namespace
- MongoDB.Bson.Serialization.Conventions
- Assembly
- MongoDB.Bson.dll
A convention that sets whether to ignore extra elements encountered during deserialization.
public class IgnoreExtraElementsConvention : ConventionBase, IClassMapConvention, IConvention- Inheritance
- 
      
      
      IgnoreExtraElementsConvention
- Implements
- Inherited Members
- Extension Methods
Constructors
IgnoreExtraElementsConvention(bool)
Initializes a new instance of the IgnoreExtraElementsConvention class.
public IgnoreExtraElementsConvention(bool ignoreExtraElements)Parameters
- ignoreExtraElementsbool
- Whether to ignore extra elements encountered during deserialization. 
Methods
Apply(BsonClassMap)
Applies a modification to the class map.
public void Apply(BsonClassMap classMap)Parameters
- classMapBsonClassMap
- The class map.