Class BsonIgnoreIfNullAttribute
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
MongoDB.Bson.Serialization.Attributes
Assembly
MongoDB.Bson.dll
Indicates whether a field or property equal to null should be ignored when serializing this class.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public class BsonIgnoreIfNullAttribute : Attribute, IBsonMemberMapAttribute
Inheritance
BsonIgnoreIfNullAttribute
Implements
Inherited Members
Extension Methods
Constructors
Initializes a new instance of the BsonIgnoreIfNullAttribute class.
BsonIgnoreIfNullAttribute(bool)
Initializes a new instance of the BsonIgnoreIfNullAttribute class.
Properties
Gets whether a field or property equal to null should be ignored when serializing this class.
Methods
Applies a modification to the member map.