Table of Contents

Class MongoDatabaseSettings

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

The settings used to access a database.

public class MongoDatabaseSettings
Inheritance
MongoDatabaseSettings
Inherited Members

Constructors

MongoDatabaseSettings()

Creates a new instance of MongoDatabaseSettings.

Properties

GuidRepresentation

Gets or sets the representation to use for Guids.

IsFrozen

Gets a value indicating whether the settings have been frozen to prevent further changes.

ReadConcern

Gets or sets the read concern.

ReadEncoding

Gets or sets the Read Encoding.

ReadPreference

Gets or sets the read preference.

SerializerRegistry

Gets the serializer registry.

WriteConcern

Gets or sets the WriteConcern to use.

WriteEncoding

Gets or sets the Write Encoding.

Methods

Clone()

Creates a clone of the settings.

Equals(object)

Compares two MongoDatabaseSettings instances.

Freeze()

Freezes the settings.

FrozenCopy()

Returns a frozen copy of the settings.

GetHashCode()

Gets the hash code.

ToString()

Returns a string representation of the settings.