Method MapExtraElementsField
- Namespace
- MongoDB.Bson.Serialization
- Assembly
- MongoDB.Bson.dll
MapExtraElementsField<TMember>(Expression<Func<TClass, TMember>>)
Creates a member map for the extra elements field and adds it to the class map.
public BsonMemberMap MapExtraElementsField<TMember>(Expression<Func<TClass, TMember>> fieldLambda)
Parameters
fieldLambda
Expression<Func<TClass, TMember>>A lambda expression specifying the extra elements field.
Returns
- BsonMemberMap
The member map.
Type Parameters
TMember
The member type.