BsonSerializer.Deserialize Method (Byte[], Type, Action<BsonDeserializationContext.Builder>) |
Deserializes an object from a BSON byte array.
Namespace:
MongoDB.Bson.Serialization
Assembly:
MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.8.0+cc573f3e1f48f39162b4b680e921a623e127e8fa
Syntaxpublic static Object Deserialize(
byte[] bytes,
Type nominalType,
Action<BsonDeserializationContext.Builder> configurator = null
)
Public Shared Function Deserialize (
bytes As Byte(),
nominalType As Type,
Optional configurator As Action(Of BsonDeserializationContext.Builder) = Nothing
) As Object
static member Deserialize :
bytes : byte[] *
nominalType : Type *
?configurator : Action<BsonDeserializationContext.Builder>
(* Defaults:
let _configurator = defaultArg configurator null
*)
-> Object
Parameters
- bytes
- Type:System.Byte[]
The BSON byte array. - 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