Method WithRepresentation
- Namespace
 - MongoDB.Bson.Serialization
 
- Assembly
 - MongoDB.Bson.dll
 
WithRepresentation(BsonType)
Returns a serializer that has been reconfigured with the specified representation.
TSerializer WithRepresentation(BsonType representation)
Parameters
representationBsonTypeThe representation.
Returns
- TSerializer
 The reconfigured serializer.