Method CreateCannotDeserializeFromBsonTypeException
- Namespace
 - MongoDB.Bson.Serialization.Serializers
 
- Assembly
 - MongoDB.Bson.dll
 
CreateCannotDeserializeFromBsonTypeException(BsonType)
Creates an exception to throw when a type cannot be deserialized from a BsonType.
protected Exception CreateCannotDeserializeFromBsonTypeException(BsonType bsonType)
Parameters
bsonTypeBsonTypeThe BSON type.
Returns
- Exception
 An exception.