C# Class MongoDB.Bson.Serialization.Conventions.IgnoreExtraElementsConvention

A convention that sets whether to ignore extra elements encountered during deserialization.
Inheritance: ConventionBase, IClassMapConvention
Afficher le fichier Open project: CloudMetal/mongo-csharp-driver Class Usage Examples

Méthodes publiques

Méthode Description
Apply ( BsonClassMap classMap ) : void

Applies a modification to the class map.

IgnoreExtraElementsConvention ( bool ignoreExtraElements )

Initializes a new instance of the IgnoreExtraElementsConvention class.

Method Details

Apply() public méthode

Applies a modification to the class map.
public Apply ( BsonClassMap classMap ) : void
classMap BsonClassMap The class map.
Résultat void

IgnoreExtraElementsConvention() public méthode

Initializes a new instance of the IgnoreExtraElementsConvention class.
public IgnoreExtraElementsConvention ( bool ignoreExtraElements )
ignoreExtraElements bool Whether to ignore extra elements encountered during deserialization.