Table of Contents

Class BsonSerializerAttribute

Namespace
MongoDB.Bson.Serialization.Attributes
Assembly
MongoDB.Bson.dll

Specifies the type of the serializer to use for a class.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Interface)]
public class BsonSerializerAttribute : Attribute, IBsonMemberMapAttribute
Inheritance
BsonSerializerAttribute
Implements
Inherited Members
Extension Methods

Constructors

BsonSerializerAttribute()

Initializes a new instance of the BsonSerializerAttribute class.

BsonSerializerAttribute(Type)

Initializes a new instance of the BsonSerializerAttribute class.

Properties

SerializerType

Gets or sets the type of the serializer to use for a class.

Methods

Apply(BsonMemberMap)

Applies a modification to the member map.