Constructor BsonIgnoreExtraElementsAttribute
- Namespace
- MongoDB.Bson.Serialization.Attributes
- Assembly
- MongoDB.Bson.dll
BsonIgnoreExtraElementsAttribute()
Initializes a new instance of the BsonIgnoreExtraElementsAttribute class.
public BsonIgnoreExtraElementsAttribute()
BsonIgnoreExtraElementsAttribute(bool)
Initializes a new instance of the BsonIgnoreExtraElementsAttribute class.
public BsonIgnoreExtraElementsAttribute(bool ignoreExtraElements)
Parameters
ignoreExtraElements
boolWhether extra elements should be ignored when this class is deserialized.