Click or drag to resize

ServerType Enumeration

Represents the server type.

Namespace:  MongoDB.Driver.Core.Servers
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
Syntax
public enum ServerType
Members
  Member nameValueDescription
Unknown0 The server type is unknown.
Standalone1 The server is a standalone server.
ShardRouter2 The server is a shard router.
ReplicaSetPrimary3 The server is a replica set primary.
ReplicaSetSecondary4 The server is a replica set secondary.
ReplicaSetPassive5 Obsolete. Use ReplicaSetSecondary instead.
ReplicaSetArbiter6 The server is a replica set arbiter.
ReplicaSetOther7 The server is a replica set member of some other type.
ReplicaSetGhost8 The server is a replica set ghost member.
LoadBalanced9 The server is under load balancing.
See Also