Represents the server type.
Namespace:
MongoDB.Driver.Core.Servers
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.9.0+32b058abcdf2c7e8d9dd3a676d207b31897eee2e
Syntax Public 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