Table of Contents

Class BsonBinaryWriterSettings

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

Represents settings for a BsonBinaryWriter.

[Serializable]
public class BsonBinaryWriterSettings : BsonWriterSettings
Inheritance
BsonBinaryWriterSettings
Inherited Members
Extension Methods

Constructors

BsonBinaryWriterSettings()

Initializes a new instance of the BsonBinaryWriterSettings class.

public BsonBinaryWriterSettings()

Properties

Defaults

Gets or sets the default BsonBinaryWriter settings.

public static BsonBinaryWriterSettings Defaults { get; set; }

Property Value

BsonBinaryWriterSettings

Encoding

Gets or sets the Encoding.

public UTF8Encoding Encoding { get; set; }

Property Value

UTF8Encoding

FixOldBinarySubTypeOnOutput

Gets or sets whether to fix the old binary data subtype on output.

public bool FixOldBinarySubTypeOnOutput { get; set; }

Property Value

bool

MaxDocumentSize

Gets or sets the max document size.

public int MaxDocumentSize { get; set; }

Property Value

int

Methods

Clone()

Creates a clone of the settings.

public BsonBinaryWriterSettings Clone()

Returns

BsonBinaryWriterSettings

A clone of the settings.

CloneImplementation()

Creates a clone of the settings.

protected override BsonWriterSettings CloneImplementation()

Returns

BsonWriterSettings

A clone of the settings.