Table of Contents

Class BsonBinaryReaderSettings

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

Represents settings for a BsonBinaryReader.

[Serializable]
public class BsonBinaryReaderSettings : BsonReaderSettings
Inheritance
BsonBinaryReaderSettings
Inherited Members
Extension Methods

Constructors

BsonBinaryReaderSettings()

Initializes a new instance of the BsonBinaryReaderSettings class.

public BsonBinaryReaderSettings()

Properties

Defaults

Gets or sets the default settings for a BsonBinaryReader.

public static BsonBinaryReaderSettings Defaults { get; set; }

Property Value

BsonBinaryReaderSettings

Encoding

Gets or sets the Encoding.

public UTF8Encoding Encoding { get; set; }

Property Value

UTF8Encoding

FixOldBinarySubTypeOnInput

Gets or sets whether to fix occurrences of the old binary subtype on input.

public bool FixOldBinarySubTypeOnInput { get; set; }

Property Value

bool

FixOldDateTimeMaxValueOnInput

Gets or sets whether to fix occurrences of the old representation of DateTime.MaxValue on input.

public bool FixOldDateTimeMaxValueOnInput { 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 BsonBinaryReaderSettings Clone()

Returns

BsonBinaryReaderSettings

A clone of the settings.

CloneImplementation()

Creates a clone of the settings.

protected override BsonReaderSettings CloneImplementation()

Returns

BsonReaderSettings

A clone of the settings.