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.8.0+cc573f3e1f48f39162b4b680e921a623e127e8fa
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