Table of Contents

Constructor ClusterDescription

Namespace
MongoDB.Driver.Core.Clusters
Assembly
MongoDB.Driver.Core.dll

ClusterDescription(ClusterId, ClusterConnectionMode, ClusterType, IEnumerable<ServerDescription>)

Initializes a new instance of the ClusterDescription class.

[Obsolete("Use the constructor that has a directConnection parameter.")]
public ClusterDescription(ClusterId clusterId, ClusterConnectionMode connectionMode, ClusterType type, IEnumerable<ServerDescription> servers)

Parameters

clusterId ClusterId

The cluster identifier.

connectionMode ClusterConnectionMode

The connection mode.

type ClusterType

The type.

servers IEnumerable<ServerDescription>

The servers.

ClusterDescription(ClusterId, ClusterConnectionMode, Exception, ClusterType, IEnumerable<ServerDescription>)

Initializes a new instance of the ClusterDescription class.

[Obsolete("Use the constructor that has a directConnection parameter.")]
public ClusterDescription(ClusterId clusterId, ClusterConnectionMode connectionMode, Exception dnsMonitorException, ClusterType type, IEnumerable<ServerDescription> servers)

Parameters

clusterId ClusterId

The cluster identifier.

connectionMode ClusterConnectionMode

The connection mode.

dnsMonitorException Exception

The last DNS monitor exception (null if there was none).

type ClusterType

The type.

servers IEnumerable<ServerDescription>

The servers.

ClusterDescription(ClusterId, bool?, Exception, ClusterType, IEnumerable<ServerDescription>)

Initializes a new instance of the ClusterDescription class.

public ClusterDescription(ClusterId clusterId, bool? directConnection, Exception dnsMonitorException, ClusterType type, IEnumerable<ServerDescription> servers)

Parameters

clusterId ClusterId

The cluster identifier.

directConnection bool?

Whether to make a direct connection.

dnsMonitorException Exception

The last DNS monitor exception (null if there was none).

type ClusterType

The type.

servers IEnumerable<ServerDescription>

The servers.