Specifies that this is the Id field or property.

Namespace: MongoDB.Bson.Serialization.Attributes
Assembly: MongoDB.Bson (in MongoDB.Bson.dll) Version: 1.1.0.4184

Syntax

C#
public class BsonIdAttribute : Attribute
Visual Basic
Public Class BsonIdAttribute _
	Inherits Attribute
Visual C++
public ref class BsonIdAttribute : public Attribute

Inheritance Hierarchy

System..::..Object
  System..::..Attribute
    MongoDB.Bson.Serialization.Attributes..::..BsonIdAttribute

See Also