Class ConnectionSettings

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver.Core.Configuration

Assembly

MongoDB.Driver.dll

Represents settings for a connection.

public class ConnectionSettings

Inheritance

ConnectionSettings

Inherited Members

Constructors

ConnectionSettings(Optional<IEnumerable>, Optional, Optional, Optional, Optional, Optional)

Initializes a new instance of the ConnectionSettings class.

Properties

ApplicationName

Gets the name of the application.

Compressors

Gets the compressors.

LibraryInfo

Information about a library using the .NET driver.

LoadBalanced

Whether the load balanced mode is enabled.

MaxIdleTime

Gets the maximum idle time.

MaxLifeTime

Gets the maximum life time.

Methods

With(Optional<IEnumerable>, Optional, Optional, Optional, Optional, Optional)

Returns a new ConnectionSettings instance with some settings changed.