Click or drag to resize
MongoDB.Bson.Serialization.Attributes Namespace
The MongoDB.Bson.Serialization.Attributes namespace contains the Attributes used to control BSON serialization/deserialization.
Classes
  ClassDescription
Public classBsonConstructorAttribute
Specifies that this constructor should be used for creator-based deserialization.
Public classBsonDateTimeOptionsAttribute
Specifies serialization options for a DateTime field or property.
Public classBsonDefaultValueAttribute
Specifies the default value for a field or property.
Public classBsonDictionaryOptionsAttribute
Specifies serialization options for a Dictionary field or property.
Public classBsonDiscriminatorAttribute
Specifies the discriminator and related options for a class.
Public classBsonElementAttribute
Specifies the element name and related options for a field or property.
Public classBsonExtraElementsAttribute
Indicates that this property or field will be used to hold any extra elements found during deserialization.
Public classBsonFactoryMethodAttribute
Specifies that this factory method should be used for creator-based deserialization.
Public classBsonIdAttribute
Specifies that this is the Id field or property.
Public classBsonIgnoreAttribute
Indicates that this field or property should be ignored when this class is serialized.
Public classBsonIgnoreExtraElementsAttribute
Specifies whether extra elements should be ignored when this class is deserialized.
Public classBsonIgnoreIfDefaultAttribute
Indicates whether a field or property equal to the default value should be ignored when serializing this class.
Public classBsonIgnoreIfNullAttribute
Indicates whether a field or property equal to null should be ignored when serializing this class.
Public classBsonKnownTypesAttribute
Specifies the known types for this class (the derived classes).
Public classBsonNoIdAttribute
Specifies that the class's IdMember should be null.
Public classBsonRepresentationAttribute
Specifies the external representation and related options for this field or property.
Public classBsonRequiredAttribute
Indicates that a field or property is required.
Public classBsonSerializationOptionsAttribute
Abstract base class for serialization options attributes.
Public classBsonSerializerAttribute
Specifies the type of the serializer to use for a class.
Public classBsonTimeSpanOptionsAttribute
Specifies the external representation and related options for this field or property.