Method SetSerializer
- Namespace
- MongoDB.Bson.Serialization
- Assembly
- MongoDB.Bson.dll
SetSerializer(IBsonSerializer)
Sets the serializer.
public BsonMemberMap SetSerializer(IBsonSerializer serializer)
Parameters
serializer
IBsonSerializerThe serializer.
Returns
- BsonMemberMap
The member map.
Exceptions
- ArgumentNullException
serializer
- ArgumentException
serializer