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.5.0+57.Branch.master.Sha.6a4e00a2d91090c65a9b11364b9ebfdb9c7da076
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
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