Represents the server type.
Namespace:
MongoDB.Driver.Core.Servers
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.8.0+cc573f3e1f48f39162b4b680e921a623e127e8fa
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.
|
See Also