Click or drag to resize

DictionaryInterfaceImplementerSerializer<TDictionary, TKey, TValue>.WithValueSerializer Method

Returns a serializer that has been reconfigured with the specified value serializer.

Namespace:  MongoDB.Bson.Serialization.Serializers
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.9.0+32b058abcdf2c7e8d9dd3a676d207b31897eee2e
Syntax
public DictionaryInterfaceImplementerSerializer<TDictionary, TKey, TValue> WithValueSerializer(
	IBsonSerializer<TValue> valueSerializer
)

Parameters

valueSerializer
Type: MongoDB.Bson.Serialization.IBsonSerializer<TValue>
The value serializer.

Return Value

Type: DictionaryInterfaceImplementerSerializer<TDictionary, TKey, TValue>
The reconfigured serializer.
See Also