Method WithValueSerializer
- Namespace
 - MongoDB.Bson.Serialization.Serializers
 
- Assembly
 - MongoDB.Bson.dll
 
WithValueSerializer(IBsonSerializer<TValue>)
Returns a serializer that has been reconfigured with the specified value serializer.
public DictionaryInterfaceImplementerSerializer<TDictionary, TKey, TValue> WithValueSerializer(IBsonSerializer<TValue> valueSerializer)
Parameters
valueSerializerIBsonSerializer<TValue>The value serializer.
Returns
- DictionaryInterfaceImplementerSerializer<TDictionary, TKey, TValue>
 The reconfigured serializer.