Class ClusterDescription
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
Represents information about a cluster.
public sealed class ClusterDescription : IEquatable<ClusterDescription>
Inheritance
ClusterDescription
Implements
Inherited Members
Constructors
ClusterDescription(ClusterId, bool, Exception, ClusterType, IEnumerable)
Initializes a new instance of the ClusterDescription class.
Properties
Gets the cluster identifier.
Gets the DirectConnection.
Gets the last DNS monitor exception (null if there was none).
Gets a value indicating whether this cluster is compatible with the driver.
Gets the logical session timeout.
Gets the servers.
Gets the cluster state.
Gets the cluster type.
Methods
Indicates whether the current object is equal to another object of the same type.
Determines whether the specified object is equal to the current object.
Serves as the default hash function.
Returns a string that represents the current object.
WithDnsMonitorException(Exception)
Returns a new ClusterDescription with a changed DnsMonitorException.
WithServerDescription(ServerDescription)
Returns a new ClusterDescription with a changed ServerDescription.
Returns a new ClusterDescription with a changed ClusterType.
WithoutServerDescription(EndPoint)
Returns a new ClusterDescription with a ServerDescription removed.