Represents the server type.
Namespace:
MongoDB.Driver.Core.Servers
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
SyntaxPublic Enumeration ServerType
Members
| Member name | Value | Description |
---|
| Unknown | 0 |
The server type is unknown.
|
| Standalone | 1 |
The server is a standalone server.
|
| ShardRouter | 2 |
The server is a shard router.
|
| ReplicaSetPrimary | 3 |
The server is a replica set primary.
|
| ReplicaSetSecondary | 4 |
The server is a replica set secondary.
|
| ReplicaSetPassive | 5 | Obsolete.
Use ReplicaSetSecondary instead.
|
| ReplicaSetArbiter | 6 |
The server is a replica set arbiter.
|
| ReplicaSetOther | 7 |
The server is a replica set member of some other type.
|
| ReplicaSetGhost | 8 |
The server is a replica set ghost member.
|
| LoadBalanced | 9 |
The server is under load balancing.
|
See Also