Method WithRepresentation
- Namespace
- MongoDB.Bson.Serialization.Serializers
- Assembly
- MongoDB.Bson.dll
WithRepresentation(BsonType)
Returns a serializer that has been reconfigured with the specified representation.
Parameters
representation
BsonType The representation.
Returns
- Time
Span Serializer The reconfigured serializer.
WithRepresentation(BsonType, TimeSpanUnits)
Returns a serializer that has been reconfigured with the specified representation and units.
Parameters
representation
BsonType The representation.
units
TimeSpan Units The units.
Returns
- Time
Span Serializer The reconfigured serializer.