Class BsonDefaultValueAttribute
- Namespace
- MongoDB.Bson.Serialization.Attributes
- Assembly
- MongoDB.Bson.dll
Specifies the default value for a field or property.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public class BsonDefaultValueAttribute : Attribute, IBsonMemberMapAttribute
- Inheritance
-
BsonDefaultValueAttribute
- Implements
- Inherited Members
- Extension Methods
Constructors
- BsonDefaultValueAttribute(object)
Initializes a new instance of the BsonDefaultValueAttribute class.
Properties
- DefaultValue
Gets the default value.
Methods
- Apply(BsonMemberMap)
Applies a modification to the member map.