Click or drag to resize

MongoCollectionSettings Class

The settings used to access a collection.
Inheritance Hierarchy
SystemObject
  MongoDB.DriverMongoCollectionSettings

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.6.0+Branch.origin/v2.6.x.Sha.593796a7b35dc59243383bcc684de296a5468f2e
Syntax
public class MongoCollectionSettings

The MongoCollectionSettings type exposes the following members.

Constructors
  NameDescription
Public methodMongoCollectionSettings
Initializes a new instance of the MongoCollectionSettings class.
Top
Properties
  NameDescription
Public propertyAssignIdOnInsert
Gets or sets a value indicating whether the driver should assign Id values when missing.
Public propertyGuidRepresentation
Gets or sets the representation used 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 to use.
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
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