Click or drag to resize
ServerType Enumeration
Represents the server type.

Namespace: MongoDB.Driver.Core.Servers
Assembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.3.0
Syntax
public enum ServerType
Members
  Member nameValueDescription
Unknown0 The server type is unknown.
Standalone1 The server is a standalone server.
ShardRouter2 The server is a shard router.
ReplicaSetPrimary3 The server is a replica set primary.
ReplicaSetSecondary4 The server is a replica set secondary.
ReplicaSetPassive5 Obsolete. Use ReplicaSetSecondary instead.
ReplicaSetArbiter6 The server is a replica set arbiter.
ReplicaSetOther7 The server is a replica set member of some other type.
ReplicaSetGhost8 The server is a replica set ghost member.
See Also