Click or drag to resize

ClusterConnectionMode Enumeration

Represents the cluster connection mode.

Namespace:  MongoDB.Driver.Core.Clusters
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.8.0+cc573f3e1f48f39162b4b680e921a623e127e8fa
public enum ClusterConnectionMode
  Member nameValueDescription
Automatic0 Determine the cluster type automatically.
Direct1 Connect directly to a single server of any type.
Standalone2 Connect directly to a Standalone server.
ReplicaSet3 Connect to a replica set.
Sharded4 Connect to one or more shard routers.
See Also