ClusterConnectionMode Enumeration |
Represents the cluster connection mode.
Namespace:
MongoDB.Driver.Core.Clusters
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.7.3+Branch.v2.7.x.Sha.2f1f2be13a23b8520cb9c2ee8439c022f9a03efe
Syntax public enum ClusterConnectionMode
Public Enumeration ClusterConnectionMode
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