Click or drag to resize
BsonDocumentSerializer Class
Represents a serializer for BsonDocuments.
Inheritance Hierarchy
System.Object
  MongoDB.Bson.Serialization.Serializers.SerializerBase<BsonDocument>
    MongoDB.Bson.Serialization.Serializers.BsonValueSerializerBase<BsonDocument>
      MongoDB.Bson.Serialization.Serializers.BsonDocumentSerializer

Namespace: MongoDB.Bson.Serialization.Serializers
Assembly: MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.4.1
Syntax
public class BsonDocumentSerializer : BsonValueSerializerBase<BsonDocument>, 
	IBsonDocumentSerializer, IBsonSerializer, IBsonIdProvider

The BsonDocumentSerializer type exposes the following members.

Constructors
  NameDescription
Public methodBsonDocumentSerializer
Initializes a new instance of the BsonDocumentSerializer class.
Top
Methods
  NameDescription
Protected methodCreateCannotBeDeserializedException
Creates an exception to throw when a type cannot be deserialized.
(Inherited from SerializerBase<TValue>.)
Protected methodCreateCannotBeSerializedException
Creates an exception to throw when a type cannot be deserialized.
(Inherited from SerializerBase<TValue>.)
Protected methodCreateCannotDeserializeFromBsonTypeException
Creates an exception to throw when a type cannot be deserialized from a BsonType.
(Inherited from SerializerBase<TValue>.)
Public methodDeserialize
Deserializes a value.
(Inherited from BsonValueSerializerBase<TBsonValue>.)
Protected methodDeserializeValue
Deserializes a value.
(Overrides BsonValueSerializerBase<TBsonValue>.DeserializeValue(BsonDeserializationContext, BsonDeserializationArgs).)
Protected methodEnsureBsonTypeEquals
Ensures that the BsonType equals the expected type.
(Inherited from SerializerBase<TValue>.)
Public methodObject.)
Public methodGetDocumentId
Gets the document Id.
Public methodObject.)
Public methodSerialize
Serializes a value.
(Inherited from BsonValueSerializerBase<TBsonValue>.)
Protected methodSerializeValue
Serializes a value.
(Overrides BsonValueSerializerBase<TBsonValue>.SerializeValue(BsonSerializationContext, BsonSerializationArgs, TBsonValue).)
Public methodSetDocumentId
Sets the document Id.
Public methodObject.)
Public methodTryGetMemberSerializationInfo
Tries to get the serialization info for a member.
Top
Extension Methods
  NameDescription
Public Extension MethodDeserialize
Deserializes a value.
(Defined by IBsonSerializerExtensions.)
Public Extension MethodSerialize
Serializes a value.
(Defined by IBsonSerializerExtensions.)
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonValue
Converts a value to a BsonValue by serializing it.
(Defined by IBsonSerializerExtensions.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
Properties
See Also

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant