| BsonElementAttribute Class | 
 Inheritance Hierarchy
Inheritance HierarchyNamespace: MongoDB.Bson.Serialization.Attributes
 Syntax
SyntaxThe BsonElementAttribute type exposes the following members.
 Constructors
Constructors| Name | Description | |
|---|---|---|
|  | BsonElementAttribute | 
            Initializes a new instance of the BsonElementAttribute class.
             | 
|  | BsonElementAttribute(String) | 
            Initializes a new instance of the BsonElementAttribute class.
             | 
 Properties
Properties| Name | Description | |
|---|---|---|
|  | ElementName | 
            Gets the element name.
             | 
|  | Order | 
            Gets the element serialization order.
             | 
|  | TypeId | (Inherited from Attribute.) | 
 Methods
Methods| Name | Description | |
|---|---|---|
|  | Apply | 
            Applies a modification to the member map.
             | 
|  | Equals | (Inherited from Attribute.) | 
|  | Finalize | (Inherited from Object.) | 
|  | GetHashCode | (Inherited from Attribute.) | 
|  | GetType | (Inherited from Object.) | 
|  | IsDefaultAttribute | (Inherited from Attribute.) | 
|  | Match | (Inherited from Attribute.) | 
|  | MemberwiseClone | (Inherited from Object.) | 
|  | ToString | (Inherited from Object.) | 
 Extension Methods
Extension Methods| Name | Description | |
|---|---|---|
|  | ToBson | 
            Serializes an object to a BSON byte array.
            (Defined by BsonExtensionMethods.) | 
|  | ToBsonDocument | 
            Serializes an object to a BsonDocument.
            (Defined by BsonExtensionMethods.) | 
|  | ToJson | 
            Serializes an object to a JSON string.
            (Defined by BsonExtensionMethods.) | 
 See Also
See Also