Table of Contents

Class BsonElementAttribute

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

BsonElementAttribute()

Initializes a new instance of the BsonElementAttribute class.

BsonElementAttribute(string)

Initializes a new instance of the BsonElementAttribute class.

Properties

ElementName

Gets the element name.

Order

Gets the element serialization order.

Methods

Apply(BsonMemberMap)

Applies a modification to the member map.