Table of Contents

Method RegisterDiscriminator

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

RegisterDiscriminator(Type, BsonValue)

Registers the discriminator for a type.

public static void RegisterDiscriminator(Type type, BsonValue discriminator)

Parameters

type Type

The type.

discriminator BsonValue

The discriminator.