Table of Contents

Enum ClusterConnectionMode

Namespace
MongoDB.Driver.Core.Clusters
Assembly
MongoDB.Driver.Core.dll

Represents the cluster connection mode.

[Obsolete("Use DirectConnection instead.")]
public enum ClusterConnectionMode

Fields

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.