Represents the server type.
Namespace: MongoDB.Driver.Core.ServersAssembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.3.0
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