Table of Contents

Class BsonIdAttribute

Namespace
MongoDB.Bson.Serialization.Attributes
Assembly
MongoDB.Bson.dll

Specifies that this is the Id field or property.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
[BsonMemberMapAttributeUsage(AllowMultipleMembers = false)]
public class BsonIdAttribute : Attribute, IBsonMemberMapAttribute
Inheritance
BsonIdAttribute
Implements
Inherited Members
Extension Methods

Constructors

BsonIdAttribute()

Initializes a new instance of the BsonIdAttribute class.

Properties

IdGenerator

Gets or sets the Id generator for the Id.

Order

Gets or sets the Id element serialization order.

Methods

Apply(BsonMemberMap)

Applies a modification to the member map.