MongoClientSettings Class |
Namespace: MongoDB.Driver
The MongoClientSettings type exposes the following members.
Name | Description | |
---|---|---|
MongoClientSettings |
Creates a new instance of MongoClientSettings. Usually you would use a connection string instead.
|
Name | Description | |
---|---|---|
Clone |
Creates a clone of the settings.
| |
Equals(Object) |
Determines whether the specified Object is equal to this instance.
(Overrides ObjectEquals(Object).) | |
Equals(MongoClientSettings) |
Determines whether the specified MongoClientSettings is equal to this instance.
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
Freeze |
Freezes the settings.
| |
FromUrl |
Gets a MongoClientSettings object intialized with values from a MongoURL.
| |
FrozenCopy |
Returns a frozen copy of the settings.
| |
GetHashCode |
Gets the hash code.
(Overrides ObjectGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString |
Returns a string representation of the settings.
(Overrides ObjectToString.) |
Name | Description | |
---|---|---|
Equality |
Determines whether two MongoClientSettings instances are equal.
| |
Inequality |
Determines whether two MongoClientSettings instances are not equal.
|
Name | Description | |
---|---|---|
ToBson |
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.) | |
ToBsonDocument |
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.) | |
ToJson |
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.) |
Name | Description | |
---|---|---|
ClusterConfigurator |
Gets or sets the cluster configurator.
| |
ConnectionMode |
Gets or sets the connection mode.
| |
ConnectTimeout |
Gets or sets the connect timeout.
| |
Credentials |
Gets or sets the credentials.
| |
GuidRepresentation |
Gets or sets the representation to use for Guids.
| |
IPv6 |
Gets or sets a value indicating whether to use IPv6.
| |
IsFrozen |
Gets a value indicating whether the settings have been frozen to prevent further changes.
| |
LocalThreshold |
Gets or sets the local threshold.
| |
MaxConnectionIdleTime |
Gets or sets the max connection idle time.
| |
MaxConnectionLifeTime |
Gets or sets the max connection life time.
| |
MaxConnectionPoolSize |
Gets or sets the max connection pool size.
| |
MinConnectionPoolSize |
Gets or sets the min connection pool size.
| |
ReadConcern |
Gets or sets the read concern.
| |
ReadEncoding |
Gets or sets the Read Encoding.
| |
ReadPreference |
Gets or sets the read preferences.
| |
ReplicaSetName |
Gets or sets the name of the replica set.
| |
Server |
Gets or sets the address of the server (see also Servers if using more than one address).
| |
Servers |
Gets or sets the list of server addresses (see also Server if using only one address).
| |
ServerSelectionTimeout |
Gets or sets the server selection timeout.
| |
SocketTimeout |
Gets or sets the socket timeout.
| |
SslSettings |
Gets or sets the SSL settings.
| |
UseSsl |
Gets or sets a value indicating whether to use SSL.
| |
VerifySslCertificate |
Gets or sets a value indicating whether to verify an SSL certificate.
| |
WaitQueueSize |
Gets or sets the wait queue size.
| |
WaitQueueTimeout |
Gets or sets the wait queue timeout.
| |
WriteConcern |
Gets or sets the WriteConcern to use.
| |
WriteEncoding |
Gets or sets the Write Encoding.
|