Class BsonDefaults
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
DynamicDocumentSerializer
Gets or sets the dynamic document serializer.
public static IBsonSerializer DynamicDocumentSerializer { get; set; }
Property Value
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
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
MaxDocumentSize
Gets or sets the default max document size. The default is 4MiB.
public static int MaxDocumentSize { get; set; }
Property Value
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; }