Click or drag to resize

BsonSerializer.Deserialize Method (BsonDocument, Type, Action<BsonDeserializationContext.Builder>)

Deserializes an object from a BsonDocument.

Namespace:  MongoDB.Bson.Serialization
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.17.0+b316340e6cc3a8bfc8638dc31b54fbbfe41bfcb2
Syntax
public static Object Deserialize(
	BsonDocument document,
	Type nominalType,
	Action<BsonDeserializationContext.Builder> configurator = null
)

Parameters

document
Type: MongoDB.Bson.BsonDocument
The BsonDocument.
nominalType
Type: System.Type
The nominal type of the object.
configurator (Optional)
Type: System.Action<BsonDeserializationContext.Builder>
The configurator.

Return Value

Type: Object
A deserialized value.
See Also