BsonSerializer.Deserialize Method (IBsonReader, Type, Action<BsonDeserializationContext.Builder>) |
Deserializes a value.
Namespace:
MongoDB.Bson.Serialization
Assembly:
MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
Syntax public 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