ClusterConnectionMode Enumeration |
Note: This API is now obsolete.
Represents the cluster connection mode.
Namespace:
MongoDB.Driver.Core.Clusters
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
Syntax [ObsoleteAttribute("Use DirectConnection instead.")]
public enum ClusterConnectionMode
<ObsoleteAttribute("Use DirectConnection instead.")>
Public Enumeration ClusterConnectionMode
[<ObsoleteAttribute("Use DirectConnection instead.")>]
type ClusterConnectionMode
Members
| Member name | Value | Description |
---|
| Automatic | 0 |
Determine the cluster type automatically.
|
| Direct | 1 |
Connect directly to a single server of any type.
|
| Standalone | 2 |
Connect directly to a Standalone server.
|
| ReplicaSet | 3 |
Connect to a replica set.
|
| Sharded | 4 |
Connect to one or more shard routers.
|
See Also