Class BsonRepresentationAttribute
- Namespace
- MongoDB.Bson.Serialization.Attributes
- Assembly
- MongoDB.Bson.dll
Specifies the external representation and related options for this field or property.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public class BsonRepresentationAttribute : BsonSerializationOptionsAttribute, IBsonMemberMapAttribute
- Inheritance
-
BsonRepresentationAttribute
- Implements
- Inherited Members
- Extension Methods
Constructors
- BsonRepresentationAttribute(BsonType)
Initializes a new instance of the BsonRepresentationAttribute class.
Properties
- AllowOverflow
Gets or sets whether to allow overflow.
- AllowTruncation
Gets or sets whether to allow truncation.
- Representation
Gets the external representation.
Methods
- Apply(IBsonSerializer)
Reconfigures the specified serializer by applying this attribute to it.