Click or drag to resize

BsonSerializerRegisterDiscriminatorConvention Method

Registers the discriminator convention for a type.

Namespace:  MongoDB.Bson.Serialization
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.17.0+b316340e6cc3a8bfc8638dc31b54fbbfe41bfcb2
Syntax
public static void RegisterDiscriminatorConvention(
	Type type,
	IDiscriminatorConvention convention
)

Parameters

type
Type: SystemType
Type type.
convention
Type: MongoDB.Bson.Serialization.ConventionsIDiscriminatorConvention
The discriminator convention.
See Also