Table of Contents

Class BsonTypeMapperOptions

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

Represents options used by the BsonTypeMapper.

public class BsonTypeMapperOptions
Inheritance
BsonTypeMapperOptions
Inherited Members
Extension Methods

Constructors

BsonTypeMapperOptions()

Initializes a new instance of the BsonTypeMapperOptions class.

public BsonTypeMapperOptions()

Properties

Defaults

Gets or sets the default BsonTypeMapperOptions.

public static BsonTypeMapperOptions Defaults { get; set; }

Property Value

BsonTypeMapperOptions

DuplicateNameHandling

Gets or sets how duplicate names should be handled.

public DuplicateNameHandling DuplicateNameHandling { get; set; }

Property Value

DuplicateNameHandling

IsFrozen

Gets whether the BsonTypeMapperOptions is frozen.

public bool IsFrozen { get; }

Property Value

bool

MapBsonArrayTo

Gets or sets the type that a BsonArray should be mapped to.

public Type MapBsonArrayTo { get; set; }

Property Value

Type

MapBsonDocumentTo

Gets or sets the type that a BsonDocument should be mapped to.

public Type MapBsonDocumentTo { get; set; }

Property Value

Type

MapOldBinaryToByteArray

Gets or sets whether binary sub type OldBinary should be mapped to byte[] the way sub type Binary is.

public bool MapOldBinaryToByteArray { get; set; }

Property Value

bool

Methods

Clone()

Clones the BsonTypeMapperOptions.

public BsonTypeMapperOptions Clone()

Returns

BsonTypeMapperOptions

The cloned BsonTypeMapperOptions.

Freeze()

Freezes the BsonTypeMapperOptions.

public BsonTypeMapperOptions Freeze()

Returns

BsonTypeMapperOptions

The frozen BsonTypeMapperOptions.