A static class that represents the BSON serialization functionality.
Inheritance Hierarchy
Namespace:
MongoDB.Bson.Serialization
Assembly:
MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntaxpublic static class BsonSerializer
Public NotInheritable Class BsonSerializer
[<AbstractClassAttribute>]
[<SealedAttribute>]
type BsonSerializer = class end
The BsonSerializer type exposes the following members.
Properties
Methods
| Name | Description |
---|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | Deserialize(Byte, Type, ActionBsonDeserializationContextBuilder) |
Deserializes an object from a BSON byte array.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | Deserialize(Stream, Type, ActionBsonDeserializationContextBuilder) |
Deserializes an object from a BSON Stream.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | Deserialize(TextReader, Type, ActionBsonDeserializationContextBuilder) |
Deserializes an object from a JSON TextReader.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | Deserialize(String, Type, ActionBsonDeserializationContextBuilder) |
Deserializes an object from a JSON string.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | Deserialize(BsonDocument, Type, ActionBsonDeserializationContextBuilder) |
Deserializes an object from a BsonDocument.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | Deserialize(IBsonReader, Type, ActionBsonDeserializationContextBuilder) |
Deserializes a value.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | DeserializeTNominalType(Byte, ActionBsonDeserializationContextBuilder) |
Deserializes an object from a BSON byte array.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | DeserializeTNominalType(Stream, ActionBsonDeserializationContextBuilder) |
Deserializes an object from a BSON Stream.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | DeserializeTNominalType(TextReader, ActionBsonDeserializationContextBuilder) |
Deserializes an object from a JSON TextReader.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | DeserializeTNominalType(String, ActionBsonDeserializationContextBuilder) |
Deserializes an object from a JSON string.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | DeserializeTNominalType(BsonDocument, ActionBsonDeserializationContextBuilder) |
Deserializes an object from a BsonDocument.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | DeserializeTNominalType(IBsonReader, ActionBsonDeserializationContextBuilder) |
Deserializes a value.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | IsTypeDiscriminated |
Returns whether the given type has any discriminators registered for any of its subclasses.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | LookupActualType |
Looks up the actual type of an object to be deserialized.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | LookupDiscriminatorConvention |
Looks up the discriminator convention for a type.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | LookupIdGenerator |
Looks up an IdGenerator.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | LookupSerializer(Type) |
Looks up a serializer for a Type.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | LookupSerializerT |
Looks up a serializer for a Type.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | RegisterDiscriminator |
Registers the discriminator for a type.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | RegisterDiscriminatorConvention |
Registers the discriminator convention for a type.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | RegisterGenericSerializerDefinition |
Registers a generic serializer definition for a generic type.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | RegisterIdGenerator |
Registers an IdGenerator for an Id Type.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | RegisterSerializationProvider |
Registers a serialization provider.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | RegisterSerializer(Type, IBsonSerializer) |
Registers a serializer for a type.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | RegisterSerializerT(IBsonSerializerT) |
Registers a serializer for a type.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | Serialize(IBsonWriter, Type, Object, ActionBsonSerializationContextBuilder, BsonSerializationArgs) |
Serializes a value.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | SerializeTNominalType(IBsonWriter, TNominalType, ActionBsonSerializationContextBuilder, BsonSerializationArgs) |
Serializes a value.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | TryRegisterSerializer(Type, IBsonSerializer) |
Tries to register a serializer for a type.
|
![Public method Public method](../icons/pubmethod.gif) ![Static member Static member](../icons/static.gif) | TryRegisterSerializerT(IBsonSerializerT) |
Tries to register a serializer for a type.
|
Top
See Also