Class BsonKnownTypesAttribute
| MongoDB CSharp Driver API Reference (original) (raw)
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
Initializes a new instance of the BsonKnownTypesAttribute class.
BsonKnownTypesAttribute(params Type[])
Initializes a new instance of the BsonKnownTypesAttribute class.
Properties
Gets a list of the known types.
Methods
Applies a modification to the class map.