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.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed
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
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