ClusterDescription Constructor (ClusterId, NullableBoolean, Exception, ClusterType, IEnumerableServerDescription) |
Namespace:
MongoDB.Driver.Core.Clusters
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax public ClusterDescription(
ClusterId clusterId,
bool? directConnection,
Exception dnsMonitorException,
ClusterType type,
IEnumerable<ServerDescription> servers
)
Public Sub New (
clusterId As ClusterId,
directConnection As Boolean?,
dnsMonitorException As Exception,
type As ClusterType,
servers As IEnumerable(Of ServerDescription)
)
new :
clusterId : ClusterId *
directConnection : Nullable<bool> *
dnsMonitorException : Exception *
type : ClusterType *
servers : IEnumerable<ServerDescription> -> ClusterDescription
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