Table of Contents

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 bool

Whether extra elements should be ignored when this class is deserialized.