A static class that represents the BSON serialization functionality.
Inheritance Hierarchy
Namespace:
MongoDB.Bson.Serialization
Assembly:
MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.5.0+57.Branch.master.Sha.6a4e00a2d91090c65a9b11364b9ebfdb9c7da076
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(Byte, Type, ActionBsonDeserializationContextBuilder) |
Deserializes an object from a BSON byte array.
|
| Deserialize(Stream, Type, ActionBsonDeserializationContextBuilder) |
Deserializes an object from a BSON Stream.
|
| Deserialize(TextReader, Type, ActionBsonDeserializationContextBuilder) |
Deserializes an object from a JSON TextReader.
|
| Deserialize(String, Type, ActionBsonDeserializationContextBuilder) |
Deserializes an object from a JSON string.
|
| Deserialize(BsonDocument, Type, ActionBsonDeserializationContextBuilder) |
Deserializes an object from a BsonDocument.
|
| Deserialize(IBsonReader, Type, ActionBsonDeserializationContextBuilder) |
Deserializes a value.
|
| DeserializeTNominalType(Byte, ActionBsonDeserializationContextBuilder) |
Deserializes an object from a BSON byte array.
|
| DeserializeTNominalType(Stream, ActionBsonDeserializationContextBuilder) |
Deserializes an object from a BSON Stream.
|
| DeserializeTNominalType(TextReader, ActionBsonDeserializationContextBuilder) |
Deserializes an object from a JSON TextReader.
|
| DeserializeTNominalType(String, ActionBsonDeserializationContextBuilder) |
Deserializes an object from a JSON string.
|
| DeserializeTNominalType(BsonDocument, ActionBsonDeserializationContextBuilder) |
Deserializes an object from a BsonDocument.
|
| DeserializeTNominalType(IBsonReader, ActionBsonDeserializationContextBuilder) |
Deserializes a value.
|
| 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