Class MongoUrlBuilder
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
Represents URL-style connection strings.
public class MongoUrlBuilder
Inheritance
MongoUrlBuilder
Inherited Members
Constructors
Creates a new instance of MongoUrlBuilder.
Creates a new instance of MongoUrlBuilder.
Properties
Gets or sets whether to relax TLS constraints as much as possible.
Gets or sets the application name.
Gets or sets the authentication mechanism.
AuthenticationMechanismProperties
Gets or sets the authentication mechanism properties.
Gets or sets the authentication source.
Gets or sets the compressors.
Gets the actual wait queue size (either WaitQueueSize or WaitQueueMultiple x MaxConnectionPoolSize).
Gets or sets the connect timeout.
Gets or sets the optional database name.
Gets or sets the direct connection.
Gets or sets the FSync component of the write concern.
Gets or sets the heartbeat interval.
Gets or sets the heartbeat timeout.
Gets or sets a value indicating whether to use IPv6.
Gets or sets the Journal component of the write concern.
Gets or sets whether load balanced mode is used.
Gets or sets the local threshold.
Gets or sets the maximum concurrently connecting connections.
Gets or sets the max connection idle time.
Gets or sets the max connection life time.
Gets or sets the max connection pool size.
Gets or sets the min connection pool size.
Gets or sets the password.
Gets or sets the read concern level.
Gets or sets the read preference.
Gets or sets the name of the replica set.
Gets or sets whether to retry reads.
Gets or sets whether to retry writes.
The connection string scheme.
Gets or sets the address of the server (see also Servers if using more than one address).
Gets or sets the server monitoring mode to use.
Gets or sets the server selection timeout.
Gets or sets the list of server addresses (see also Server if using only one address).
Gets or sets the socket timeout.
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.
Gets or sets the SRV service name which modifies the srv URI to look like:
_{srvServiceName}._tcp.{hostname}.{domainname}
TlsDisableCertificateRevocationCheck
Gets or sets whether to disable certificate revocation checking during the TLS handshake.
Gets or sets a value indicating whether to use SSL.
Gets or sets a value indicating whether to use TLS.
Gets or sets the username.
Gets or sets a value indicating whether to verify an SSL certificate.
Gets or sets the W component of the write concern.
Gets or sets the WTimeout component of the write concern.
Gets or sets the wait queue multiple (the actual wait queue size will be WaitQueueMultiple x MaxConnectionPoolSize).
Gets or sets the wait queue size.
Gets or sets the wait queue timeout.
Methods
Returns a WriteConcern value based on this instance's settings and a default enabled value.
Parses a URL and sets all settings to match the URL.
Creates a new instance of MongoUrl based on the settings in this MongoUrlBuilder.
Returns the canonical URL based on the settings in this MongoUrlBuilder.