Table of Contents

Class BsonKnownTypesAttribute

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

Specifies the known types for this class (the derived classes).

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple = true)]
public class BsonKnownTypesAttribute : Attribute, IBsonClassMapAttribute
Inheritance
BsonKnownTypesAttribute
Implements
Inherited Members
Extension Methods

Constructors

BsonKnownTypesAttribute(Type)

Initializes a new instance of the BsonKnownTypesAttribute class.

BsonKnownTypesAttribute(params Type[])

Initializes a new instance of the BsonKnownTypesAttribute class.

Properties

KnownTypes

Gets a list of the known types.

Methods

Apply(BsonClassMap)

Applies a modification to the class map.