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