Enum ServerType
Represents the server type.
public enum ServerType
- Extension Methods
Fields
Unknown = 0The server type is unknown.
Standalone = 1The server is a standalone server.
ShardRouter = 2The server is a shard router.
ReplicaSetPrimary = 3The server is a replica set primary.
ReplicaSetSecondary = 4The server is a replica set secondary.
[Obsolete("Passives are treated the same as secondaries.")] ReplicaSetPassive = 5Use ReplicaSetSecondary instead.
ReplicaSetArbiter = 6The server is a replica set arbiter.
ReplicaSetOther = 7The server is a replica set member of some other type.
ReplicaSetGhost = 8The server is a replica set ghost member.
LoadBalanced = 9The server is under load balancing.