Class MongoClientSettings
The settings for a MongoDB client.
- Inheritance
-
Mongo
Client Settings
- Implements
- Inherited Members
Constructors
- Mongo
Client Settings() Creates a new instance of MongoClientSettings. Usually you would use a connection string instead.
Properties
- Allow
Insecure Tls Gets or sets whether to relax TLS constraints as much as possible. Setting this variable to true will also set SslSettings.CheckCertificateRevocation to false.
- Application
Name Gets or sets the application name.
- Auto
Encryption Options Gets or sets the auto encryption options.
- Cluster
Configurator Gets or sets the cluster configurator.
- Compressors
Gets or sets the compressors.
- Connect
Timeout Gets or sets the connect timeout.
- Connection
Mode Gets or sets the connection mode.
- Connection
Mode Switch Gets the connection mode switch.
- Credential
Gets or sets the credential.
- Credentials
Gets or sets the credentials.
- Direct
Connection Gets or sets the direct connection.
- Guid
Representation Gets or sets the representation to use for Guids.
- Heartbeat
Interval Gets or sets the heartbeat interval.
- Heartbeat
Timeout Gets or sets the heartbeat timeout.
- IPv6
Gets or sets a value indicating whether to use IPv6.
- Is
Frozen Gets a value indicating whether the settings have been frozen to prevent further changes.
- Library
Info Gets or sets information about a library using the .NET Driver.
- Linq
Provider Gets or sets the LINQ provider.
- Load
Balanced Gets or sets whether load balanced mode is used.
- Local
Threshold Gets or sets the local threshold.
- Logging
Settings Gets or sets the logging settings
- Max
Connecting Gets or sets the maximum concurrently connecting connections.
- Max
Connection Idle Time Gets or sets the max connection idle time.
- Max
Connection Life Time Gets or sets the max connection life time.
- Max
Connection Pool Size Gets or sets the max connection pool size.
- Min
Connection Pool Size Gets or sets the min connection pool size.
- Read
Concern Gets or sets the read concern.
- Read
Encoding Gets or sets the Read Encoding.
- Read
Preference Gets or sets the read preferences.
- Replica
Set Name Gets or sets the name of the replica set.
- Retry
Reads Gets or sets whether to retry reads.
- Retry
Writes Gets or sets whether to retry writes.
- Scheme
Gets or sets the connection string scheme.
- Sdam
Log Filename Gets or set the name of the SDAM log file. Null turns logging off. stdout will log to console.
- Server
Gets or sets the address of the server (see also Servers if using more than one address).
- Server
Api Gets or sets the server API.
- Server
Monitoring Mode Gets or sets the server monitoring mode to use.
- Server
Selection Timeout Gets or sets the server selection timeout.
- Servers
Gets or sets the list of server addresses (see also Server if using only one address).
- Socket
Timeout Gets or sets the socket timeout.
- Srv
Max Hosts Limits the number of SRV records used to populate the seedlist during initial discovery, as well as the number of additional hosts that may be added during SRV polling.
- Srv
Service Name Gets or sets the SRV service name which modifies the srv URI to look like:
_{srvServiceName}._tcp.{hostname}.{domainname}
The default value is "mongodb".
- Ssl
Settings Gets or sets the SSL settings.
- Use
Ssl Gets or sets a value indicating whether to use SSL.
- Use
Tls Gets or sets a value indicating whether to use TLS.
- Verify
Ssl Certificate Gets or sets a value indicating whether to verify an SSL certificate.
- Wait
Queue Size Gets or sets the wait queue size.
- Wait
Queue Timeout Gets or sets the wait queue timeout.
- Write
Concern Gets or sets the WriteConcern to use.
- Write
Encoding Gets or sets the Write Encoding.
Methods
- Clone()
Creates a clone of the settings.
- Equals(Mongo
Client Settings) Determines whether the specified Mongo
Client is equal to this instance.Settings
- Equals(object)
Determines whether the specified object is equal to this instance.
- Freeze()
Freezes the settings.
- From
Connection String(string) Gets a MongoClientSettings object intialized with values from a connection string.
- From
Url(Mongo Url) Gets a MongoClientSettings object intialized with values from a MongoURL.
- Frozen
Copy() Returns a frozen copy of the settings.
- Get
Hash Code() Gets the hash code.
- To
String() Returns a string representation of the settings.
Operators
- operator ==(Mongo
Client Settings, Mongo Client Settings) Determines whether two Mongo
Client instances are equal.Settings
- operator !=(Mongo
Client Settings, Mongo Client Settings) Determines whether two Mongo
Client instances are not equal.Settings