Table of Contents

Class MongoDefaults

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Default values for various Mongo settings.

public static class MongoDefaults
Inheritance
MongoDefaults
Inherited Members

Properties

AssignIdOnInsert

Gets or sets whether the driver should assign a value to empty Ids on Insert.

AuthenticationMechanism

Gets or sets the default authentication mechanism.

ComputedWaitQueueSize

Gets the actual wait queue size (either WaitQueueSize or WaitQueueMultiple x MaxConnectionPoolSize).

ConnectTimeout

Gets or sets the connect timeout.

GuidRepresentation

Gets or sets the representation to use for Guids (this is an alias for BsonDefaults.GuidRepresentation).

LocalThreshold

Gets or sets the default local threshold.

MaxBatchCount

Gets or sets the maximum batch count.

MaxConnectionIdleTime

Gets or sets the max connection idle time.

MaxConnectionLifeTime

Gets or sets the max connection life time.

MaxConnectionPoolSize

Gets or sets the max connection pool size.

MaxDocumentSize

Gets or sets the max document size

MaxMessageLength

Gets or sets the max message length.

MinConnectionPoolSize

Gets or sets the min connection pool size.

OperationTimeout

Gets or sets the operation timeout.

ReadEncoding

Gets or sets the Read Encoding.

ServerSelectionTimeout

Gets or sets the server selection timeout.

SocketTimeout

Gets or sets the socket timeout.

TcpReceiveBufferSize

Gets or sets the TCP receive buffer size.

TcpSendBufferSize

Gets or sets the TCP send buffer size.

WaitQueueMultiple

Gets or sets the wait queue multiple (the actual wait queue size will be WaitQueueMultiple x MaxConnectionPoolSize, see also WaitQueueSize).

WaitQueueSize

Gets or sets the wait queue size (see also WaitQueueMultiple).

WaitQueueTimeout

Gets or sets the wait queue timeout.

WriteEncoding

Gets or sets the Write Encoding.