Table of Contents

Class BsonWriterSettings

Namespace
MongoDB.Bson.IO
Assembly
MongoDB.Bson.dll

Represents settings for a BsonWriter.

[Serializable]
public abstract class BsonWriterSettings
Inheritance
BsonWriterSettings
Derived
Inherited Members
Extension Methods

Constructors

BsonWriterSettings()

Initializes a new instance of the BsonWriterSettings class.

BsonWriterSettings(GuidRepresentation)

Initializes a new instance of the BsonWriterSettings class.

Properties

GuidRepresentation

Gets or sets the representation for Guids.

IsFrozen

Gets whether the settings are frozen.

MaxSerializationDepth

Gets or sets the max serialization depth allowed (used to detect circular references).

Methods

Clone()

Creates a clone of the settings.

CloneImplementation()

Creates a clone of the settings.

Freeze()

Freezes the settings.

FrozenCopy()

Returns a frozen copy of the settings.

ThrowFrozenException()

Throws an InvalidOperationException when an attempt is made to change a setting after the settings are frozen.