Table of Contents

Class BsonDocumentSerializer

Namespace
MongoDB.Bson.Serialization.Serializers
Assembly
MongoDB.Bson.dll

Represents a serializer for BsonDocuments.

public sealed class BsonDocumentSerializer : BsonValueSerializerBase<BsonDocument>, IBsonSerializer<BsonDocument>, IBsonDocumentSerializer, IBsonSerializer, IBsonIdProvider
Inheritance
BsonDocumentSerializer
Implements
Inherited Members
Extension Methods

Constructors

BsonDocumentSerializer()

Initializes a new instance of the BsonDocumentSerializer class.

Properties

Instance

Gets an instance of the BsonDocumentSerializer class.

Methods

DeserializeValue(BsonDeserializationContext, BsonDeserializationArgs)

Deserializes a value.

GetDocumentId(object, out object, out Type, out IIdGenerator)

Gets the document Id.

SerializeValue(BsonSerializationContext, BsonSerializationArgs, BsonDocument)

Serializes a value.

SetDocumentId(object, object)

Sets the document Id.

TryGetMemberSerializationInfo(string, out BsonSerializationInfo)

Tries to get the serialization info for a member.