MongoDB.Bson.Serialization.Attributes Namespace (original) (raw)

The MongoDB.Bson.Serialization.Attributes namespace contains the Attributes used to control BSON serialization/deserialization.

| | Class | Description | | | ------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | | Public class | BsonConstructorAttribute | Specifies that this constructor should be used for creator-based deserialization. | | Public class | BsonDateTimeOptionsAttribute | Specifies serialization options for a DateTime field or property. | | Public class | BsonDefaultValueAttribute | Specifies the default value for a field or property. | | Public class | BsonDictionaryOptionsAttribute | Specifies serialization options for a Dictionary field or property. | | Public class | BsonDiscriminatorAttribute | Specifies the discriminator and related options for a class. | | Public class | BsonElementAttribute | Specifies the element name and related options for a field or property. | | Public class | BsonExtraElementsAttribute | Indicates that this property or field will be used to hold any extra elements found during deserialization. | | Public class | BsonFactoryMethodAttribute | Specifies that this factory method should be used for creator-based deserialization. | | Public class | BsonIdAttribute | Specifies that this is the Id field or property. | | Public class | BsonIgnoreAttribute | Indicates that this field or property should be ignored when this class is serialized. | | Public class | BsonIgnoreExtraElementsAttribute | Specifies whether extra elements should be ignored when this class is deserialized. | | Public class | BsonIgnoreIfDefaultAttribute | Indicates whether a field or property equal to the default value should be ignored when serializing this class. | | Public class | BsonIgnoreIfNullAttribute | Indicates whether a field or property equal to null should be ignored when serializing this class. | | Public class | BsonKnownTypesAttribute | Specifies the known types for this class (the derived classes). | | Public class | BsonNoIdAttribute | Specifies that the class's IdMember should be null. | | Public class | BsonRepresentationAttribute | Specifies the external representation and related options for this field or property. | | Public class | BsonRequiredAttribute | Indicates that a field or property is required. | | Public class | BsonSerializationOptionsAttribute | Abstract base class for serialization options attributes. | | Public class | BsonSerializerAttribute | Specifies the type of the serializer to use for a class. | | Public class | BsonTimeSpanOptionsAttribute | Specifies the external representation and related options for this field or property. |