Table of Contents

Method SetIsRequired

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

SetIsRequired(bool)

Sets whether an element is required for this member when deserialized

public BsonMemberMap SetIsRequired(bool isRequired)

Parameters

isRequired bool

Whether an element is required for this member when deserialized

Returns

BsonMemberMap

The member map.