Table of Contents

Enum ServerType

Namespace
MongoDB.Driver.Core.Servers
Assembly
MongoDB.Driver.dll

Represents the server type.

public enum ServerType
Extension Methods

Fields

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.

[Obsolete("Passives are treated the same as secondaries.")] ReplicaSetPassive = 5

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.