Table of Contents

Class ObjectIdSerializer

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

Represents a serializer for ObjectIds.

public class ObjectIdSerializer : StructSerializerBase<ObjectId>, IBsonSerializer<ObjectId>, IBsonSerializer, IRepresentationConfigurable<ObjectIdSerializer>, IRepresentationConfigurable, IHasRepresentationSerializer
Inheritance
ObjectIdSerializer
Implements
Inherited Members
Extension Methods

Constructors

ObjectIdSerializer()

Initializes a new instance of the ObjectIdSerializer class.

ObjectIdSerializer(BsonType)

Initializes a new instance of the ObjectIdSerializer class.

Properties

Instance

Gets a cached instance of an ObjectId serializer.

Representation

Gets the representation.

Methods

Deserialize(BsonDeserializationContext, BsonDeserializationArgs)

Deserializes a value.

Serialize(BsonSerializationContext, BsonSerializationArgs, ObjectId)

Serializes a value.

WithRepresentation(BsonType)

Returns a serializer that has been reconfigured with the specified representation.