BsonSerializerDeserializeTNominalType Method (BsonDocument, ActionBsonDeserializationContextBuilder) |
Deserializes an object from a BsonDocument.
Namespace:
MongoDB.Bson.Serialization
Assembly:
MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.8.0+cc573f3e1f48f39162b4b680e921a623e127e8fa
Syntax public static TNominalType Deserialize<TNominalType>(
BsonDocument document,
Action<BsonDeserializationContextBuilder> configurator = null
)
Public Shared Function Deserialize(Of TNominalType) (
document As BsonDocument,
Optional configurator As Action(Of BsonDeserializationContextBuilder) = Nothing
) As TNominalType
static member Deserialize :
document : BsonDocument *
?configurator : Action<BsonDeserializationContextBuilder>
(* Defaults:
let _configurator = defaultArg configurator null
*)
-> 'TNominalType
Parameters
- document
- Type: MongoDB.BsonBsonDocument
The BsonDocument. - configurator (Optional)
- Type: SystemActionBsonDeserializationContextBuilder
The configurator.
Type Parameters
- TNominalType
- The nominal type of the object.
Return Value
Type:
TNominalTypeA deserialized value.
See Also