Click or drag to resize

MongoUrlBuilder Class

Represents URL-style connection strings.
Inheritance Hierarchy
SystemObject
  MongoDB.DriverMongoUrlBuilder

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.18.0+554c799eb1ec8dd732f16c739387f6664df1ba7a
Syntax
[SerializableAttribute]
public class MongoUrlBuilder

The MongoUrlBuilder type exposes the following members.

Constructors
  NameDescription
Public methodMongoUrlBuilder
Creates a new instance of MongoUrlBuilder.
Public methodMongoUrlBuilder(String)
Creates a new instance of MongoUrlBuilder.
Top
Properties
  NameDescription
Public propertyAllowInsecureTls
Gets or sets whether to relax TLS constraints as much as possible.
Public propertyApplicationName
Gets or sets the application name.
Public propertyAuthenticationMechanism
Gets or sets the authentication mechanism.
Public propertyAuthenticationMechanismProperties
Gets or sets the authentication mechanism properties.
Public propertyAuthenticationSource
Gets or sets the authentication source.
Public propertyCompressors
Gets or sets the compressors.
Public propertyComputedWaitQueueSize Obsolete.
Gets the actual wait queue size (either WaitQueueSize or WaitQueueMultiple x MaxConnectionPoolSize).
Public propertyConnectionMode Obsolete.
Gets or sets the connection mode.
Public propertyConnectionModeSwitch Obsolete.
Gets the connection mode switch.
Public propertyConnectTimeout
Gets or sets the connect timeout.
Public propertyDatabaseName
Gets or sets the optional database name.
Public propertyDirectConnection
Gets or sets the direct connection.
Public propertyFSync
Gets or sets the FSync component of the write concern.
Public propertyGuidRepresentation Obsolete.
Gets or sets the representation to use for Guids.
Public propertyHeartbeatInterval
Gets or sets the heartbeat interval.
Public propertyHeartbeatTimeout
Gets or sets the heartbeat timeout.
Public propertyIPv6
Gets or sets a value indicating whether to use IPv6.
Public propertyJournal
Gets or sets the Journal component of the write concern.
Public propertyLoadBalanced
Gets or sets whether load balanced mode is used.
Public propertyLocalThreshold
Gets or sets the local threshold.
Public propertyMaxConnecting
Gets or sets the maximum concurrently connecting connections.
Public propertyMaxConnectionIdleTime
Gets or sets the max connection idle time.
Public propertyMaxConnectionLifeTime
Gets or sets the max connection life time.
Public propertyMaxConnectionPoolSize
Gets or sets the max connection pool size.
Public propertyMinConnectionPoolSize
Gets or sets the min connection pool size.
Public propertyPassword
Gets or sets the password.
Public propertyReadConcernLevel
Gets or sets the read concern level.
Public propertyReadPreference
Gets or sets the read preference.
Public propertyReplicaSetName
Gets or sets the name of the replica set.
Public propertyRetryReads
Gets or sets whether to retry reads.
Public propertyRetryWrites
Gets or sets whether to retry writes.
Public propertyScheme
The connection string scheme.
Public propertyServer
Gets or sets the address of the server (see also Servers if using more than one address).
Public propertyServers
Gets or sets the list of server addresses (see also Server if using only one address).
Public propertyServerSelectionTimeout
Gets or sets the server selection timeout.
Public propertySocketTimeout
Gets or sets the socket timeout.
Public propertySrvMaxHosts
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.
Public propertyTlsDisableCertificateRevocationCheck
Gets or sets whether to disable certificate revocation checking during the TLS handshake.
Public propertyUsername
Gets or sets the username.
Public propertyUseSsl Obsolete.
Gets or sets a value indicating whether to use SSL.
Public propertyUseTls
Gets or sets a value indicating whether to use TLS.
Public propertyVerifySslCertificate Obsolete.
Gets or sets a value indicating whether to verify an SSL certificate.
Public propertyW
Gets or sets the W component of the write concern.
Public propertyWaitQueueMultiple Obsolete.
Gets or sets the wait queue multiple (the actual wait queue size will be WaitQueueMultiple x MaxConnectionPoolSize).
Public propertyWaitQueueSize Obsolete.
Gets or sets the wait queue size.
Public propertyWaitQueueTimeout
Gets or sets the wait queue timeout.
Public propertyWTimeout
Gets or sets the WTimeout component of the write concern.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from 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 methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetWriteConcern
Returns a WriteConcern value based on this instance's settings and a default enabled value.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodParse
Parses a URL and sets all settings to match the URL.
Public methodToMongoUrl
Creates a new instance of MongoUrl based on the settings in this MongoUrlBuilder.
Public methodToString
Returns the canonical URL based on the settings in this MongoUrlBuilder.
(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