Table of Contents

Method SetDiscriminatorIsRequired

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

SetDiscriminatorIsRequired(bool)

Sets whether a discriminator is required when serializing this class.

public void SetDiscriminatorIsRequired(bool discriminatorIsRequired)

Parameters

discriminatorIsRequired bool

Whether a discriminator is required.