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.6.0+Branch.origin/v2.6.x.Sha.593796a7b35dc59243383bcc684de296a5468f2e
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 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 propertyComputedWaitQueueSize
Gets the actual wait queue size (either WaitQueueSize or WaitQueueMultiple x MaxConnectionPoolSize).
Public propertyConnectionMode
Gets or sets the connection mode.
Public propertyConnectTimeout
Gets or sets the connect timeout.
Public propertyDatabaseName
Gets or sets the optional database name.
Public propertyFSync
Gets or sets the FSync component of the write concern.
Public propertyGuidRepresentation
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 propertyLocalThreshold
Gets or sets the local threshold.
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 propertyRetryWrites
Gets or sets whether to retry writes.
Public propertyScheme
The scheme used to connect with mongodb.
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 propertyUsername
Gets or sets the username.
Public propertyUseSsl
Gets or sets a value indicating whether to use SSL.
Public propertyVerifySslCertificate
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
Gets or sets the wait queue multiple (the actual wait queue size will be WaitQueueMultiple x MaxConnectionPoolSize).
Public propertyWaitQueueSize
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 (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodGetWriteConcern
Returns a WriteConcern value based on this instance's settings and a default enabled value.
Protected methodMemberwiseClone (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