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.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntaxpublic static Object Deserialize(
BsonDocument document,
Type nominalType,
Action<BsonDeserializationContext.Builder> configurator = null
)
Public Shared Function Deserialize (
document As BsonDocument,
nominalType As Type,
Optional configurator As Action(Of BsonDeserializationContext.Builder) = Nothing
) As Object
static member Deserialize :
document : BsonDocument *
nominalType : Type *
?configurator : Action<BsonDeserializationContext.Builder>
(* Defaults:
let _configurator = defaultArg configurator null
*)
-> Object
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:
ObjectA deserialized value.
See Also