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.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
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