Click or drag to resize

ConnectionSettings Constructor

Initializes a new instance of the ConnectionSettings class.

Namespace:  MongoDB.Driver.Core.Configuration
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.7.3+Branch.v2.7.x.Sha.2f1f2be13a23b8520cb9c2ee8439c022f9a03efe
Syntax
public ConnectionSettings(
	Optional<IEnumerable<IAuthenticator>> authenticators = null,
	Optional<TimeSpan> maxIdleTime = null,
	Optional<TimeSpan> maxLifeTime = null,
	Optional<string> applicationName = null
)

Parameters

authenticators (Optional)
Type: MongoDB.DriverOptionalIEnumerableIAuthenticator
The authenticators.
maxIdleTime (Optional)
Type: MongoDB.DriverOptionalTimeSpan
The maximum idle time.
maxLifeTime (Optional)
Type: MongoDB.DriverOptionalTimeSpan
The maximum life time.
applicationName (Optional)
Type: MongoDB.DriverOptionalString
The application name.
See Also