Table of Contents

Class MongoCollectionSettings

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

The settings used to access a collection.

public class MongoCollectionSettings
Inheritance
MongoCollectionSettings
Inherited Members

Constructors

MongoCollectionSettings()

Initializes a new instance of the MongoCollectionSettings class.

Properties

AssignIdOnInsert

Gets or sets a value indicating whether the driver should assign Id values when missing.

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 to use.

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 MongoCollectionSettings 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.