Table of Contents

Method HasDefaultValue

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

HasDefaultValue(string)

Gets whether there is a default value for a missing element.

public bool HasDefaultValue(string elementName)

Parameters

elementName string

The element name.

Returns

bool

True if there is a default value for element name; otherwise, false.