Click or drag to resize

MongoDatabaseSettings Class

The settings used to access a database.
Inheritance Hierarchy
SystemObject
  MongoDB.DriverMongoDatabaseSettings

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax
public class MongoDatabaseSettings

The MongoDatabaseSettings type exposes the following members.

Constructors
  NameDescription
Public methodMongoDatabaseSettings
Creates a new instance of MongoDatabaseSettings.
Top
Properties
  NameDescription
Public propertyGuidRepresentation Obsolete.
Gets or sets the representation to use for Guids.
Public propertyIsFrozen
Gets a value indicating whether the settings have been frozen to prevent further changes.
Public propertyReadConcern
Gets or sets the read concern.
Public propertyReadEncoding
Gets or sets the Read Encoding.
Public propertyReadPreference
Gets or sets the read preference.
Public propertySerializerRegistry
Gets the serializer registry.
Public propertyWriteConcern
Gets or sets the WriteConcern to use.
Public propertyWriteEncoding
Gets or sets the Write Encoding.
Top
Methods
  NameDescription
Public methodClone
Creates a clone of the settings.
Public methodEquals
Compares two MongoDatabaseSettings instances.
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFreeze
Freezes the settings.
Public methodFrozenCopy
Returns a frozen copy of the settings.
Public methodGetHashCode
Gets the hash code.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string representation of the settings.
(Overrides ObjectToString.)
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also