BsonSerializer.Deserialize Method (IBsonReader, Type, Action<BsonDeserializationContext.Builder>) |
Deserializes a value.
Namespace:
MongoDB.Bson.Serialization
Assembly:
MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.16.0+eeafbea0921243a5868b81984e1083a07c1f75bc
Syntaxpublic static Object Deserialize(
IBsonReader bsonReader,
Type nominalType,
Action<BsonDeserializationContext.Builder> configurator = null
)
Public Shared Function Deserialize (
bsonReader As IBsonReader,
nominalType As Type,
Optional configurator As Action(Of BsonDeserializationContext.Builder) = Nothing
) As Object
static member Deserialize :
bsonReader : IBsonReader *
nominalType : Type *
?configurator : Action<BsonDeserializationContext.Builder>
(* Defaults:
let _configurator = defaultArg configurator null
*)
-> Object
Parameters
- bsonReader
- Type: MongoDB.Bson.IO.IBsonReader
The BsonReader. - 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