Click or drag to resize

MongoUrl Class

Represents an immutable URL style connection string. See also MongoUrlBuilder.
Inheritance Hierarchy
SystemObject
  MongoDB.DriverMongoUrl

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 MongoUrl : IEquatable<MongoUrl>

The MongoUrl type exposes the following members.

Constructors
  NameDescription
Public methodMongoUrl
Creates a new instance of MongoUrl.
Top
Properties
  NameDescription
Public propertyApplicationName
Gets the application name.
Public propertyAuthenticationMechanism
Gets the authentication mechanism.
Public propertyAuthenticationMechanismProperties
Gets the authentication mechanism properties.
Public propertyAuthenticationSource
Gets the authentication source.
Public propertyComputedWaitQueueSize
Gets the actual wait queue size (either WaitQueueSize or WaitQueueMultiple x MaxConnectionPoolSize).
Public propertyConnectionMode
Gets the connection mode.
Public propertyConnectTimeout
Gets the connect timeout.
Public propertyDatabaseName
Gets the optional database name.
Public propertyFSync
Gets the FSync component of the write concern.
Public propertyGuidRepresentation
Gets the representation to use for Guids.
Public propertyHasAuthenticationSettings
Gets a value indicating whether this instance has authentication settings.
Public propertyHeartbeatInterval
Gets the heartbeat interval.
Public propertyHeartbeatTimeout
Gets the heartbeat timeout.
Public propertyIPv6
Gets a value indicating whether to use IPv6.
Public propertyJournal
Gets the Journal component of the write concern.
Public propertyLocalThreshold
Gets the local threshold.
Public propertyMaxConnectionIdleTime
Gets the max connection idle time.
Public propertyMaxConnectionLifeTime
Gets the max connection life time.
Public propertyMaxConnectionPoolSize
Gets the max connection pool size.
Public propertyMinConnectionPoolSize
Gets the min connection pool size.
Public propertyPassword
Gets the password.
Public propertyReadConcernLevel
Gets the read concern level.
Public propertyReadPreference
Gets the read preference.
Public propertyReplicaSetName
Gets the name of the replica set.
Public propertyRetryWrites
Gets whether writes will be retried.
Public propertyScheme
Gets the scheme.
Public propertyServer
Gets the address of the server (see also Servers if using more than one address).
Public propertyServers
Gets the list of server addresses (see also Server if using only one address).
Public propertyServerSelectionTimeout
Gets the server selection timeout.
Public propertySocketTimeout
Gets the socket timeout.
Public propertyUrl
Gets the URL (in canonical form).
Public propertyUsername
Gets the username.
Public propertyUseSsl
Gets a value indicating whether to use SSL.
Public propertyVerifySslCertificate
Gets a value indicating whether to verify an SSL certificate.
Public propertyW
Gets the W component of the write concern.
Public propertyWaitQueueMultiple
Gets the wait queue multiple (the actual wait queue size will be WaitQueueMultiple x MaxConnectionPoolSize).
Public propertyWaitQueueSize
Gets the wait queue size.
Public propertyWaitQueueTimeout
Gets the wait queue timeout.
Public propertyWTimeout
Gets the WTimeout component of the write concern.
Top
Methods
  NameDescription
Public methodStatic memberClearCache
Clears the URL cache. When a URL is parsed it is stored in the cache so that it doesn't have to be parsed again. There is rarely a need to call this method.
Public methodStatic memberCreate
Creates an instance of MongoUrl (might be an existing existence if the same URL has been used before).
Public methodEquals(Object)
Compares two MongoUrls.
(Overrides ObjectEquals(Object).)
Public methodEquals(MongoUrl)
Compares two MongoUrls.
Protected methodFinalize (Inherited from Object.)
Public methodGetCredential
Gets the credential.
Public methodGetHashCode
Gets the hash code.
(Overrides ObjectGetHashCode.)
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 methodResolve
Resolves a connection string. If the connection string indicates more information is available in the DNS system, it will acquire that information as well.
Public methodResolveAsync
Resolves a connection string. If the connection string indicates more information is available in the DNS system, it will acquire that information as well.
Public methodToString
Returns the canonical URL based on the settings in this MongoUrlBuilder.
(Overrides ObjectToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Compares two MongoUrls.
Public operatorStatic memberInequality
Compares two MongoUrls.
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