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