Table of Contents

Method MapExtraElementsProperty

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

MapExtraElementsProperty<TMember>(Expression<Func<TClass, TMember>>)

Creates a member map for the extra elements property and adds it to the class map.

public BsonMemberMap MapExtraElementsProperty<TMember>(Expression<Func<TClass, TMember>> propertyLambda)

Parameters

propertyLambda Expression<Func<TClass, TMember>>

A lambda expression specifying the extra elements property.

Returns

BsonMemberMap

The member map.

Type Parameters

TMember

The member type.