Click or drag to resize

ClusterDescription Constructor (ClusterId, NullableBoolean, Exception, ClusterType, IEnumerableServerDescription)

Initializes a new instance of the ClusterDescription class.

Namespace:  MongoDB.Driver.Core.Clusters
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.16.0+eeafbea0921243a5868b81984e1083a07c1f75bc
Syntax
public ClusterDescription(
	ClusterId clusterId,
	bool? directConnection,
	Exception dnsMonitorException,
	ClusterType type,
	IEnumerable<ServerDescription> servers
)

Parameters

clusterId
Type: MongoDB.Driver.Core.ClustersClusterId
The cluster identifier.
directConnection
Type: SystemNullableBoolean
Whether to make a direct connection.
dnsMonitorException
Type: SystemException
The last DNS monitor exception (null if there was none).
type
Type: MongoDB.Driver.Core.ClustersClusterType
The type.
servers
Type: System.Collections.GenericIEnumerableServerDescription
The servers.
See Also