BsonClassMapSetDiscriminatorIsRequired Method |
Sets whether a discriminator is required when serializing this class.
Namespace:
MongoDB.Bson.Serialization
Assembly:
MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.11.0+cb27a82ea70620ad1acad8058809be8302ae4f2a
Syntax public void SetDiscriminatorIsRequired(
bool discriminatorIsRequired
)
Public Sub SetDiscriminatorIsRequired (
discriminatorIsRequired As Boolean
)
member SetDiscriminatorIsRequired :
discriminatorIsRequired : bool -> unit
Parameters
- discriminatorIsRequired
- Type: SystemBoolean
Whether a discriminator is required.
See Also