Class BsonElementAttribute
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
MongoDB.Bson.Serialization.Attributes
Assembly
MongoDB.Bson.dll
Specifies the element name and related options for a field or property.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public class BsonElementAttribute : Attribute, IBsonMemberMapAttribute
Inheritance
BsonElementAttribute
Implements
Inherited Members
Extension Methods
Constructors
Initializes a new instance of the BsonElementAttribute class.
Initializes a new instance of the BsonElementAttribute class.
Properties
Gets the element name.
Gets the element serialization order.
Methods
Applies a modification to the member map.