Namespace MongoDB.Bson.Serialization.Attributes
| MongoDB CSharp Driver API Reference (original) (raw)
The MongoDB.Bson.Serialization.Attributes namespace contains the Attributes used to control BSON serialization/deserialization.
Classes
Specifies that this constructor should be used for creator-based deserialization.
Specifies serialization options for a DateTime field or property.
Specifies the default value for a field or property.
BsonDictionaryOptionsAttribute
Specifies serialization options for a Dictionary field or property.
Specifies the discriminator and related options for a class.
Specifies the element name and related options for a field or property.
Indicates that this property or field will be used to hold any extra elements found during deserialization.
Specifies that this factory method should be used for creator-based deserialization.
BsonGuidRepresentationAttribute
Specifies the Guid representation to use with the GuidSerializer for this member.
Specifies that this is the Id field or property.
Indicates that this field or property should be ignored when this class is serialized.
BsonIgnoreExtraElementsAttribute
Specifies whether extra elements should be ignored when this class is deserialized.
Indicates whether a field or property equal to the default value should be ignored when serializing this class.
Indicates whether a field or property equal to null should be ignored when serializing this class.
Specifies the known types for this class (the derived classes).
Specifies that the class's IdMember should be null.
Specifies the external representation and related options for this field or property.
Indicates that a field or property is required.
BsonSerializationOptionsAttribute
Abstract base class for serialization options attributes.
Specifies the type of the serializer to use for a class.
Specifies the external representation and related options for this field or property.