Table of Contents

Constructor BsonKnownTypesAttribute

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

BsonKnownTypesAttribute(params Type[])

Initializes a new instance of the BsonKnownTypesAttribute class.

public BsonKnownTypesAttribute(params Type[] knownTypes)

Parameters

knownTypes Type[]

One or more known types.

BsonKnownTypesAttribute(Type)

Initializes a new instance of the BsonKnownTypesAttribute class.

public BsonKnownTypesAttribute(Type knownType)

Parameters

knownType Type

A known types.