Table of Contents

Class BsonDefaults

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

A static helper class containing BSON defaults.

public static class BsonDefaults
Inheritance
BsonDefaults
Inherited Members

Properties

DynamicArraySerializer

Gets or sets the dynamic array serializer.

public static IBsonSerializer DynamicArraySerializer { get; set; }

Property Value

IBsonSerializer

DynamicDocumentSerializer

Gets or sets the dynamic document serializer.

public static IBsonSerializer DynamicDocumentSerializer { get; set; }

Property Value

IBsonSerializer

GuidRepresentation

Gets or sets the default representation to be used in serialization of Guids to the database. GuidRepresentation

[Obsolete("Configure serializers instead.")]
public static GuidRepresentation GuidRepresentation { get; set; }

Property Value

GuidRepresentation

GuidRepresentationMode

Gets or sets the default representation to be used in serialization of Guids to the database. GuidRepresentation

[Obsolete("This property will be removed in a later release.")]
public static GuidRepresentationMode GuidRepresentationMode { get; set; }

Property Value

GuidRepresentationMode

MaxDocumentSize

Gets or sets the default max document size. The default is 4MiB.

public static int MaxDocumentSize { get; set; }

Property Value

int

MaxSerializationDepth

Gets or sets the default max serialization depth (used to detect circular references during serialization). The default is 100.

public static int MaxSerializationDepth { get; set; }

Property Value

int