Click or drag to resize
ConnectionString Class
Represents a connection string.
Inheritance Hierarchy
SystemObject
  MongoDB.Driver.Core.ConfigurationConnectionString

Namespace: MongoDB.Driver.Core.Configuration
Assembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.3.0
Syntax
public sealed class ConnectionString

The ConnectionString type exposes the following members.

Constructors
  NameDescription
Public methodConnectionString
Initializes a new instance of the ConnectionString class.
Top
Properties
  NameDescription
Public propertyAllOptionNames
Gets all the option names.
Public propertyAllUnknownOptionNames
Gets all the unknown option names.
Public propertyAuthMechanism
Gets the auth mechanism.
Public propertyAuthMechanismProperties
Gets the auth mechanism properties.
Public propertyAuthSource
Gets the auth source.
Public propertyConnect
Gets the connection mode.
Public propertyConnectTimeout
Gets the connect timeout.
Public propertyDatabaseName
Gets the name of the database.
Public propertyFSync
Gets the fsync value of the write concern.
Public propertyHosts
Gets the hosts.
Public propertyIpv6
Gets whether to use IPv6.
Public propertyJournal
Gets the journal value of the write concern.
Public propertyLocalThreshold
Gets the local threshold.
Public propertyMaxIdleTime
Gets the max idle time.
Public propertyMaxLifeTime
Gets the max life time.
Public propertyMaxPoolSize
Gets the max size of the connection pool.
Public propertyMinPoolSize
Gets the min size of the connection pool.
Public propertyPassword
Gets the password.
Public propertyReadConcernLevel
Gets the read concern level.
Public propertyReadPreference
Gets the read preference.
Public propertyReadPreferenceTags
Gets the read preference tags.
Public propertyReplicaSet
Gets the replica set name.
Public propertyServerSelectionTimeout
Gets the server selection timeout.
Public propertySocketTimeout
Gets the socket timeout.
Public propertySsl
Gets whether to use SSL.
Public propertySslVerifyCertificate
Gets whether to verify SSL certificates.
Public propertyUsername
Gets the username.
Public propertyUuidRepresentation
Gets the UUID representation.
Public propertyW
Gets the w value of the write concern.
Public propertyWaitQueueMultiple
Gets the wait queue multiple.
Public propertyWaitQueueSize
Gets the wait queue size.
Public propertyWaitQueueTimeout
Gets the wait queue timeout.
Public propertyWTimeout
Gets the wtimeout value of the write concern.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetOption
Gets the option.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(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